From: Lennart Poettering Date: Fri, 10 Apr 2026 10:10:06 +0000 (+0200) Subject: report: add cgroup metrics in a separate varlink service (#41489) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554ba32d3083c05e996a3ac0335dfb3da5f81a8a;p=thirdparty%2Fsystemd.git report: add cgroup metrics in a separate varlink service (#41489) Add CpuUsage, MemoryUsage, IOReadBytes, IOReadOperations, and TasksCurrent in a standalone socket-activated varlink service. These metrics are gathered from the kernel via cgroup files and PID1's only role is mapping unit names to cgroup paths — a separate process can query PID1 once for that mapping and then read the cgroup files directly, minimizing PID1 involvement. The new systemd-report-cgroup-metrics service listens at /run/systemd/report/io.systemd.CGroup and exposes: - io.systemd.CGroup.CpuUsage - io.systemd.CGroup.IOReadBytes - io.systemd.CGroup.IOReadOperations - io.systemd.CGroup.MemoryUsage (with type=current/available/peak) - io.systemd.CGroup.TasksCurrent This is spun out of #41078 and based on top of it. Will rebase once that's merged. --- 554ba32d3083c05e996a3ac0335dfb3da5f81a8a