Skip to content

Write the records of the buckets of res cluster to at most 64 files - #584

Merged
tamnd merged 1 commit into
mainfrom
bucket-groups
Nov 5, 2026
Merged

tamnd merged 1 commit into
mainfrom
bucket-groups

Conversation

@tamnd

@tamnd tamnd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

RunFiles wrote the records of each bucket to its own file, and kept all the files open while it read the source records. Each open file has the buffers of a gzip compressor. The full catalogue has about 1800 buckets, so these buffers took more memory than the server had free.

With this change, one file holds the records of the buckets that follow one another, and RunFiles opens at most 64 files. It reads one file when it gets to its first bucket and keeps the records of that file in memory until it has done their buckets. The tests set the limit to 2 files, so that a file holds more than one bucket, and the run of the files still gives the resources of one run. Part of #352.

@tamnd tamnd added type: fix Corrects something that is wrong. area: resources The catalogue of works: books, courses, papers (corpus resources RS) labels Nov 5, 2026
@tamnd
tamnd enabled auto-merge (squash) November 5, 2026 10:40
@tamnd
tamnd merged commit 3b8f289 into main Nov 5, 2026
12 of 13 checks passed
@tamnd
tamnd deleted the bucket-groups branch November 5, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: resources The catalogue of works: books, courses, papers (corpus resources RS) type: fix Corrects something that is wrong.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant