Sign in

← Software

In-kernel zone.max-physical-memory resource control

nameIn-kernel zone.max-physical-memory resource control
recommendationconsider
in solnixno
categoryzones
originomnios
smartos
kindkernel
summaryA kernel-enforced physical memory (RSS) cap per zone: the rctl zone.max-physical-memory, per-zone page accounting in a zone_persist_t array, and page-scanner integration that reclaims from zones over their cap. Upstream illumos instead relies on the userland rcapd. Also extends the memory_cap kstat (rss, physcap, swap, nover, pagedout) that zonememstat reads.
whyGives Nix zone modules an enforceable memory limit without running rcapd. Take it with the illumos-omnios variant; do not port alone.
upstream statusNot in illumos-gate at the pin ac45d71fc2 or on master 2026-11-16 (recursive tree diff). rctl_register("zone.max-physical-memory") appears in zone.c of illumos-joyent and illumos-omnios, not in the pin.
effortmedium
riskChanges the VM page scanner; a bug here hurts every zone. Comes bundled with the Joyent merge, so it is hard to take lx without it.
licenseCDDL-1.0
source urlhttps://github.com/TritonDataCenter/illumos-joyent/blob/380e8df2d36bc83f3f7d74259ee0caacb507afbb/usr/src/uts/common/os/zone.c
sourceshttps://github.com/illumos/illumos-gate/tree/ac45d71fc2b04a5422e72a14b54dd1e746e7be07/usr/src/uts/common/os/zone.c
https://github.com/TritonDataCenter/illumos-joyent/blob/380e8df2d36bc83f3f7d74259ee0caacb507afbb/usr/src/uts/common/os/zone.c
https://github.com/omniosorg/illumos-omnios/blob/6c1de855b3c1da5200236f83e538b8f449f4ed21/usr/src/uts/common/os/zone.c

What Solnix has done

No decision yet: open for ranking.

Objections (0)

None.

Sign in to object to this item.