Scratch chunks: the spare cap under limited memory tunable (VICTORY_SPARE_MOST_MB) #373

Closed
github-bot wants to merge 0 commits from github-bot/gh-373 into main AGit
Owner

@⁠yagizakkaya01 on GitHub · 2026-12-01 19:36 UTC · original
yagizakkaya01:pr/spare → main · +12 −1 · 2 files · 72 commits · closed without merging

Requested by yağız akkaya · project thread

For #361.

When host memory counts as limited, spare scratch chunks are capped at 128 MiB, and past that the list threads make new write-back chunks again. In a WPR profile on machine 1 (as in PR 1) that creation (take_chunk → writeback_upload_buffer) was ~4% of the list threads' CPU. VICTORY_SPARE_MOST_MB=<n> (16 to 4096) sets the cap. Not given: 128, as before. I run 512 on 32 GB.

I only have the profile share for this one, no separate before/after. I'll add a run.

🤖 Generated with Claude Code

**@⁠yagizakkaya01** on GitHub · 2026-12-01 19:36 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/373) `yagizakkaya01:pr/spare` → `main` · +12 −1 · 2 files · 72 commits · closed without merging <!-- claude-projects-attribution: {"github_login":"yagizakkaya01"} --> _Requested by **yağız akkaya** · [project thread](https://claude.ai/code/project/chan_01NXDwzZjZwLk73ttN9aPba7?thread=cmsg_01NXDwzZjZwLk73ttN9aPba7JV4k53Ls6GvVA5PUvye88n)_ For #361. When host memory counts as limited, spare scratch chunks are capped at 128 MiB, and past that the list threads make new write-back chunks again. In a WPR profile on machine 1 (as in PR 1) that creation (`take_chunk` → `writeback_upload_buffer`) was ~4% of the list threads' CPU. `VICTORY_SPARE_MOST_MB=<n>` (16 to 4096) sets the cap. Not given: 128, as before. I run 512 on 32 GB. I only have the profile share for this one, no separate before/after. I'll add a run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 19:37:42 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 21:09 UTC · original

Thank you. Taken behind its switch (VICTORY_SPARE_MOST_MB, off unless set) and being measured, including memory use on machines near their RAM limit.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 21:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/373#issuecomment-7325825306) Thank you. Taken behind its switch (`VICTORY_SPARE_MOST_MB`, off unless set) and being measured, including memory use on machines near their RAM limit.
github-bot closed this pull request 2026-12-02 07:54:33 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.