You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pynixd: swap-in of idle pages reads as memory pressure, and holds the local build limit at 1 #1260
Measured on dynhetz, 2026-11-09 23:15: the local build limit is 1 of 48, reason: memory_pressure. /proc/pressure/memory reads full avg10=1.67. But MemAvailable is 38 GB of 64 GB, and no cgroup shows a memory stall of its own above 0.5 %. 17 GB of swap is in use: idle pages swapped out long ago stall their owners when they come back in, and the kernel counts that as host-wide memory full.
PressureLimit._verdict (pynixd/pressure.py:108) reads that host-wide figure. memory_full_high (2.0) lowers the limit, and between memory_full_low (0.5) and the high mark it holds, so it never rises again. The low limit then sends preferLocalBuild images to a remote (#1259).
Proposal: read the memory pressure of the cgroup that holds pynixd's builds (pynixd makes one for each build), and fall back to the host figure only together with MemAvailable under its mark.
Landed on main at 2f5e33a: memory full counts only while MemAvailable is under memory_full_below_available (0.25) of MemTotal. A host that gives no meminfo keeps the old rule. A negative control without the condition failed the new test test_a_memory_stall_with_memory_to_spare_leaves_the_limit_to_rise.
The guest suites took as long as before (functional 404 s), so this limit is not what makes them slow.
Activity
Lillecarl commentedon Nov 10, 2026
Landed on main at 2f5e33a: memory
fullcounts only whileMemAvailableis undermemory_full_below_available(0.25) ofMemTotal. A host that gives no meminfo keeps the old rule. A negative control without the condition failed the new testtest_a_memory_stall_with_memory_to_spare_leaves_the_limit_to_rise.The guest suites took as long as before (functional 404 s), so this limit is not what makes them slow.
Assisted-By: Claude Opus 5.5
pynixd: judge a builder's memory by the cgroup its builds run in
pynixd: count the host's memory stall beside the build cgroup's