Skip to content

pynixd: swap-in of idle pages reads as memory pressure, and holds the local build limit at 1 #1260

Closed

Description

@Lillecarl

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.


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: pynixd
    on Nov 9, 2026
  2. Lillecarl commented on Nov 10, 2026

    @Lillecarl
    ContributorAuthor

    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.


    Assisted-By: Claude Opus 5.5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: pynixd

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions