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
systemd driver: zswap settings are reset on systemctl daemon-reload #75
With the systemd cgroup v2 driver, memory.zswap.max and memory.zswap.writeback set via unified are written only to cgroupfs. They aren't translated to systemd unit properties, so systemd resets them to its defaults on systemctl daemon-reload, silently discarding the container's zswap configuration.
The systemd driver is the recommended Kubernetes setup, so this blocks reliable zswap use in production. We've hit it in production at Uber.
Proposed fix: map them to the corresponding systemd properties, skipping them on older systemd, as is already done for AllowedCPUs:
Activity
kolyshkin commentedon Oct 1, 2026
@MKrupauskas thanks for reporting this. Feel free to open a PR.