]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: add support for memory.swap.current 29941/head
authorFlorian Schmaus <flo@geekplace.eu>
Fri, 10 Nov 2023 10:44:09 +0000 (11:44 +0100)
committerFlorian Schmaus <flo@geekplace.eu>
Sat, 11 Nov 2023 11:16:29 +0000 (12:16 +0100)
commit37533c9432e911ccff177f46358e2be31164fb5d
tree0403b34e80b2e4265b951d4cf677bae166403cca
parent991506ae5dd691b8ecf214dc31e57e02bf8c8a4c
cgroup: add support for memory.swap.current

In systemctl-show we only show current swap if ever swapped or non-zero. This
reduces the noise on swapless systems, that would otherwise always show a swap
value that never has the chance to become non-zero. It further reduces the
noise for services that never swapped.
man/org.freedesktop.systemd1.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-unit.c
src/systemctl/systemctl-show.c