Fixed
Created: May 21, 2019
Updated: Oct 14, 2019
Resolved Date: Oct 14, 2019
Found In Version: unknown
Fix Version: 10.18.44.11
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace
After adding the sysstat package to the rootfs and enabling the service I expected the "sar" command to dump CPU statistics. However, all I see is the host info (kernel version, hostname, date, etc) and time of last reboot.
Is there a configuration file missing?
$ configure --enable-board=intel-x86-64 \
--enable-rootfs=glibc_std \
--enable-kernel=standard \
--with-package=sysstat \
--with-rcpl-version=0026
$ make fs
$ make start-target
login as root, then:
# systemctl start sysstat
# systemctl enable sysstat
# sar
Linux 4.1.21-WR8.0.0.26_standard (qemu0) 03/27/19 _x86_64_ (1 CPU)
11:02:24 LINUX RESTART (1 CPU)
After waiting 10+ minutes and repeating the command I would expect to see some CPU statistics, but in fact I just see the exact same results. Even after much longer it is the same.
Doing the same thing on an Ubuntu host and waiting for some time I see the expected results:
Linux 4.4.0-143-generic (plex) 27/03/19 _x86_64_ (8 CPU)
09:10:08 LINUX RESTART
09:15:01 CPU %user %nice %system %iowait %steal %idle
09:25:01 all 1.91 0.00 0.94 1.00 0.00 96.16
09:35:01 all 2.67 0.03 1.09 1.60 0.00 94.62
09:45:01 all 4.40 0.00 1.38 3.34 0.00 90.87
09:55:01 all 1.77 0.00 0.85 1.08 0.00 96.30
10:05:01 all 1.23 0.00 0.65 0.46 0.00 97.66
10:15:01 all 2.47 0.00 0.66 0.39 0.00 96.47
10:25:01 all 1.66 0.00 0.78 0.69 0.00 96.87
10:35:01 all 1.23 0.00 0.66 0.18 0.00 97.94
10:45:01 all 1.18 0.00 0.69 0.22 0.00 97.91
10:55:01 all 1.32 0.00 0.69 0.25 0.00 97.74
11:05:01 all 2.61 0.00 0.71 0.32 0.00 96.37
11:15:01 all 0.96 0.00 0.66 0.17 0.00 98.22
11:25:01 all 1.03 0.00 0.66 0.27 0.00 98.05
11:35:01 all 1.10 0.00 0.66 0.20 0.00 98.04
Average: all 1.82 0.00 0.79 0.73 0.00 96.66