On Sun, Mar 24, 2013 at 11:23 AM, Umut Tezduyar <u...@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 percentages, etc. Have you thought about doing that? Auke _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel