[systemd-devel] [PATCH 2/2] systemd-analyze: --type cpuacct option for blame
Kok, Auke-jan H
auke-jan.h.kok at intel.com
Mon Mar 25 13:59:45 PDT 2013
On Sun, Mar 24, 2013 at 11:23 AM, Umut Tezduyar <umut at tezduyar.com> wrote:
> systemd-analyze blame --type cpuacct displays cpu time
> usage information of the cgroup. The information displayed
> is cpuacct.usage.
> ControlGroup=cpuacct:/foo/bar for a service would work.
> ControlGroupPersistent=yes for a oneshot service keeps
> cpuacct around so blame can retrieve it.
> DefaultControllers=cpuacct on system.conf can be set
> to have cpuacct same as systemd cgroup.
> src/analyze/systemd-analyze.c | 131 +++++++++++++++++++++++++++++++++++++----
> 1 files changed, 119 insertions(+), 12 deletions(-)
So, I'm not against this patch per se, but, I'm wondering if it's not
better to display this data in systemd-cgtop.
After all, systemd-analyze is a one-time snapshot and suffers from
data loss when services are restarted, etc.
Having a method to show cpuacct totals in systemd-cgtop seems much
more useful. You could modify the code to show totals instead of
Have you thought about doing that?
More information about the systemd-devel