fix(tools): the build gate counts reclaimable page cache as the slice's use
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- go, linux
- Domain
- devops, performance
Research direction
Start with tools/internal/buildgate/slice.go, especially sliceReadingFrom, and inspect how the gate records slice_current_mib at each build start. Compare those readings with the slice's anon value from memory.stat during waits. First establish whether cache alone causes waits; if it does, propose and test sizing against anonymous memory with a margin for unreclaimable memory.
Written by the indexing model from the issue text.
Description
The gate's headroom is memory.high less memory.current, and memory.current counts reclaimable page cache, so a slice full of cache reads as a slice with no room and a build waits for memory the kernel would give back.
Evidence at release/v6.20.0 + the #2844 and #2847 commits
tools/internal/buildgate/slice.gosliceReadingFromreadsmemory.currentonly.- Read on the slice while builds ran (2026-11-25): anon 4.69 GB and file 6.66 GB of a memory.current of about 11.4 GB (the review of the #2847 commit).
- The per-job figure
MemPerJobMiBis amemory.peakfigure, cache included: 543 and 681 MiB a job against 523 and 636 MiB anonymous (slot-build.jsonlpeak_mibandanon_peak_mibof two full builds), so the figure is not changed by this.
Not shown
- How much of the file memory is reclaimable when the gate waits, and how often a build waits on cache alone.
Falsifier
A gate that waits for memory while the slice's anon (memory.stat) is under its limit less the room for 4 jobs starts without waiting once the kernel has reclaimed the cache, or the record shows no wait at those times.
Work
- Measure: record
anonof the slice besideslice_current_mibat each start and compare waits with it. - If cache is the cause, size against anonymous memory (plus a margin for what the kernel cannot reclaim) with a test first.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100