Skip to content

Raise STXXL_MEMORY to 20G in the Qleverfiles for Wikidata [DO NOT MERGE] - #370

Open
hannahbast wants to merge 1 commit into
mainfrom
raise-wikidata-stxxl-memory
Open

hannahbast wants to merge 1 commit into
mainfrom
raise-wikidata-stxxl-memory

Conversation

@hannahbast

@hannahbast hannahbast commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

So far, the Qleverfiles for Wikidata and Wikidata MUNGED set STXXL_MEMORY = 10G. With the current QLever master, the index build then fails while it writes the last pair of permutations, with the message Insufficient memory for merging 62 blocks. Please increase the memory settings (on an AMD Ryzen 9 9950X with 16 cores and 32 threads). Since ad-freiburg/qlever#3807, each thread has its own share of this memory for sorting the triples of a large predicate, and with 32 threads the share is too small for the largest predicates of Wikidata. With STXXL_MEMORY = 20G the index build completes. Its peak memory usage is then about 60 GB instead of just under 30 GB.

NOTE: Do not merge this before the peak memory usage with STXXL_MEMORY = 20G has been looked into. About 60 GB is too high for the index build of Wikidata.

So far, the Qleverfiles for Wikidata and Wikidata MUNGED set `STXXL_MEMORY = 10G`. With the current QLever master, the index build then fails while it writes the last pair of permutations, with the message `Insufficient memory for merging 62 blocks. Please increase the memory settings` (on an AMD Ryzen 9 9950X with 16 cores and 32 threads). Since ad-freiburg/qlever#3807, each thread has its own share of this memory for sorting the triples of a large predicate, and with 32 threads the share is too small for the largest predicates of Wikidata. With `STXXL_MEMORY = 20G` the index build completes. Its peak memory usage is then about 60 GB instead of just under 30 GB.
Copilot AI balanced review requested due to automatic review settings November 27, 2026 02:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@hannahbast hannahbast changed the title Raise STXXL_MEMORY to 20G in the Qleverfiles for Wikidata Raise STXXL_MEMORY to 20G in the Qleverfiles for Wikidata [DO NOT MERGE] Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants