]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: add support for memory.peak
authorFlorian Schmaus <flo@geekplace.eu>
Mon, 6 Nov 2023 12:15:55 +0000 (13:15 +0100)
committerFlorian Schmaus <flo@geekplace.eu>
Mon, 6 Nov 2023 17:08:33 +0000 (18:08 +0100)
commit6c71db763cb482c30870359dd3d188a6aa23c4da
treeb26f3a77e6c876670c09d8236a252fc8943b96cb
parent69c37b26a4743261d1bf0639bb03fa85ee7a5c38
cgroup: add support for memory.peak

Linux's Control Group v2 interfaces exposes memory.peak, which contains the
"max memory usage recorded for the cgroup and its descendants since the
creation of the cgroup."

This commit adds a new property "MemoryPeak" for units and makes "systemctl
show" display this value if it is available.

Fixes #29878.

Signed-off-by: Florian Schmaus <flo@geekplace.eu>
NEWS
man/org.freedesktop.systemd1.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-unit.c
src/core/unit.c
src/core/unit.h
src/systemctl/systemctl-show.c