[lxc/lxc] 750da2: tools: lxc-info: Print memory and cpu utilization ...

0 views
Skip to first unread message

Stéphane Graber

unread,
May 15, 2026, 10:12:11 AM (4 days ago) May 15
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: 750da2a251637ed790ea8a671c1ed11594f24c1e
https://github.com/lxc/lxc/commit/750da2a251637ed790ea8a671c1ed11594f24c1e
Author: Petr Malat <o...@malat.biz>
Date: 2026-05-15 (Fri, 15 May 2026)

Changed paths:
M src/lxc/tools/lxc_info.c

Log Message:
-----------
tools: lxc-info: Print memory and cpu utilization on cgroup2 system

Emulate the cgroup1 behavior by calculating memory.kmem.usage_in_bytes
and memory.usage_in_bytes using information provided in memory.stat and
use cpu.stat/usage_usec instead of cpuacct.usage.

Signed-off-by: Petr Malat <o...@malat.biz>
[ alex: rebase & whitespace fix ]
Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: b0ff3f2eaac286233b62c50d306116f3eea4259f
https://github.com/lxc/lxc/commit/b0ff3f2eaac286233b62c50d306116f3eea4259f
Author: Stéphane Graber <stgr...@stgraber.org>
Date: 2026-05-15 (Fri, 15 May 2026)

Changed paths:
M src/lxc/tools/lxc_info.c

Log Message:
-----------
Merge pull request #4426 from petris/lxc-info-cg2

tools: lxc-info: Print memory and cpu utilization on cgroup2 system


Compare: https://github.com/lxc/lxc/compare/10b533a70538...b0ff3f2eaac2

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages