Skip to content

dynamic slots: DS2 follow-ups (EOPNOTSUPP fixtures, offIsNone, cgroupns=host, piece paths) #307

Closed

Description

@scuttletoby

Follow-ups from the round-2 lens on #284 (DS2 capacity readings): #284 (comment) and the "Follow-ups for DS3" section of the #284 body. None blocked the merge.

  1. Test gap: add "turned off" (EOPNOTSUPP) fixtures for cpu.max, cgroup.controllers and the v1 root memory.stat; three mutations (reading "turned off" there as "no limit" / "not here") survive today.
  2. Tidy: the offIsNone flag in psiOf changes nothing; remove it or comment why box PSI stays safe without it.
  3. Docs: a container started with --cgroupns=host finds no limit and uses the host's numbers (same as upstream's reader). Add it to the README "Not read yet" list.
  4. (dynamic slots: capacity readings: swap, pressure, live total, per-piece demand (DS2) #284 item 5) Inside a container the machine PSI is the host's.
  5. (dynamic slots: capacity readings: swap, pressure, live total, per-piece demand (DS2) #284 item 6) readPieceDemand gives gone for any missing memory.stat, including a wrong or never-created path. DS3 should drop a piece only when its own records agree that it ended; a box that does not exist yet can be passed as boxPsi: null when it holds no pieces.

Planned: DS3 (slot gate wiring) takes these.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions