You are not logged in.

#1 2016-11-12 10:50:45

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Gaps in systemd-cgtop data regarding distccd.service

I have a box running as a slave distcc node.  Utils like top and htop show the CPU loaded as it should be but running systemd-cgtop shows nothing at all... is this expected?  According to the man page for systemd.resource-control, "Unless "CPUAccounting=1", "MemoryAccounting=1" and "BlockIOAccounting=1" are enabled for the services in question, no resource accounting will be available for system services and the data shown by systemd-cgtop will be incomplete."

So I added these to /usr/lib/systemd/system/distccd.service but still, I do not see the CPU usage in the output.

[Unit]
Description=A distributed C/C++ compiler
Documentation=man:distccd(1)
After=network.target
CPUAccounting=1
MemoryAccounting=1
BlockIOAccounting=1

[Service]
User=nobody
EnvironmentFile=/etc/conf.d/distccd
ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS

[Install]
WantedBy=multi-user.target

The load averages:

% cat /proc/loadavg
3.79 3.80 3.55 5/125 23136

Output of systemd-cgtop:

% systemd-cgtop
Control Group                                                                            Tasks   %CPU   Memory  Input/s Output/s
/                                                                                            -      -   269.3M        -        -
/init.scope                                                                                  1      -        -        -        -
/system.slice                                                                               32      -        -        -        -
/system.slice/cronie.service                                                                 1      -        -        -        -
/system.slice/dbus.service                                                                   1      -        -        -        -
/system.slice/distccd.service                                                               23      -        -        -        -
/system.slice/gpm.service                                                                    1      -        -        -        -
/system.slice/smartd.service                                                                 1      -        -        -        -
/system.slice/sshd.service                                                                   1      -        -        -        -
/system.slice/system-getty.slice                                                             1      -        -        -        -
/system.slice/system-getty.slice/getty@tty1.service                                          1      -        -        -        -
/system.slice/systemd-journald.service                                                       1      -        -        -        -
/system.slice/systemd-logind.service                                                         1      -        -        -        -
/system.slice/systemd-networkd.service                                                       1      -        -        -        -
/system.slice/systemd-resolved.service                                                       1      -        -        -        -
/system.slice/systemd-timesyncd.service                                                      2      -        -        -        -
/system.slice/systemd-udevd.service                                                          1      -        -        -        -
/user.slice                                                                                  7      -        -        -        -
/user.slice/user-1000.slice                                                                  7      -        -        -        -
/user.slice/user-1000.slice/session-c1.scope                                                 5      -        -        -        -
/user.slice/user-1000.slice/user@1000.service                                                2      -        -        -        -

Last edited by graysky (2016-11-12 11:15:44)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB