ksar graph for SuSE11 don't show CPU time spent on I/O wait.

Hi,

In our environment, we are collecting SAR files from Linux (SuSE-11/Redhat-5) servers and using ksar to generate graphs. The ksar graphs are put in the http doc root to be accessed via browser.

We have observed that the ksar utility does not show amount of CPU time spent on I/O wait in the graphs for any SUSE server. This is not an issue for the graphs generated for sar files of RHEL5 servers.

If you have come accross this issue, please comment or suggest.

Thanks.

lnxbum Wrote in message:
[color=blue]

In our environment, we are collecting SAR files from Linux
(SuSE-11/Redhat-5) servers and using ksar to generate graphs. The ksar
graphs are put in the http doc root to be accessed via browser.

We have observed that the ksar utility does not show amount of CPU time
spent on I/O wait in the graphs for any SUSE server. This is not an
issue for the graphs generated for sar files of RHEL5 servers.

If you have come accross this issue, please comment or suggest.[/color]

How are you running sar on your SLES11 and RHEL5 servers?

Which versions of sar (sar -V) and ksar are in play here?

Are you running SLES11 and RHEL5 on servers with the same hardware
or different?

HTH.

Simon Flood
SUSE Knowledge Partner

----Android NewsGroup Reader----
http://usenet.sinaapp.com/

Hi Simon,

Thanks for the reply. Please find the answers to your queries:

  1. How are you running sar on your SLES11 and RHEL5 servers?
    There is a crontab for sysstat, and we have setup so that we get server resource utilization samples every 5 minutes and that the SAR report is generated every 6 hours. We are using the -p option so that we “Pretty-print” device names.

dot435:/etc/cron.d # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

dot435:/etc/cron.d # sar -V
sysstat version 8.1.5
(C) Sebastien Godard (sysstat orange.fr)

dot435:/etc/cron.d # cat sysstat

crontab for sysstat

Activity reports every 5 minutes everyday

*/5 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 -S ALL 1 1

Update reports every 6 hours

50 5,11,17,23 * * * root [ -x /usr/lib64/sa/sa2 ] && exec /usr/lib64/sa/sa2 -Ap

[root@dot380 cron.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)

[root@dot380 cron.d]# sar -V
sysstat version 7.0.2
(C) Sebastien Godard

[root@dot380 cron.d]# cat sysstat

run system activity accounting tool every 5 minutes

*/5 * * * * root /usr/lib64/sa/sa1 1 1

generate summary of process accounting at every 6 hours

50 5,11,17,23 * * * root /usr/lib64/sa/sa2 -Ap

  1. Which versions of sar (sar -V) and ksar are in play here?
    We have written a script which gets the sar files from all the Linux servers (SuSE/Redhat) and generates ksar graphs. The script runs on a edhat server (dot118). The “Sar” version on the SuSE/RedHat server and the “kSar” version on the redhat server where we generate the ksar graphs for the sar files collected are listed below:

dot435:/etc/cron.d # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

dot435:/etc/cron.d # sar -V
sysstat version 8.1.5
(C) Sebastien Godard (sysstat orange.fr)

[root@dot380 cron.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)

[root@dot380 cron.d]# sar -V
sysstat version 7.0.2
(C) Sebastien Godard

[root@dot118 kSar-5.0.6]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

[root@dot118 kSar-5.0.6]# /usr/bin/java -jar /sysinfo/kSar-5.0.6/kSar.jar -version
kSar version: 5.0.6

  1. Are you running SLES11 and RHEL5 on servers with the same hardware or different?
    All the SuSE and RedHat servers are VM’s that run on the vmware infrastructure.

dot435:/etc/cron.d # dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 2c c0 b7 12-da 61 00 29 a3
UUID: 42342FD7-DA61-00CF49E029A3
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

[root@dot380 cron.d]# dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 34 10 0c 3c-f1 de 8b 62 41
UUID: 4234100C-F1A2-18BFDE8B6241
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

[root@dot118 kSar-5.0.6]# dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 a6 2e 6b b5-58 45 d0 b3 48
UUID: 4234E2C8-5845-D0DCC976B348
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

Thanks.

On 04/08/16 13:14, lnxbum wrote:
[color=blue]

Thanks for the reply. Please find the answers to your queries:

  1. How are you running sar on your SLES11 and RHEL5 servers?
    There is a crontab for sysstat, and we have setup so that we get server
    resource utilization samples every 5 minutes and that the SAR report is
    generated every 6 hours. We are using the -p option so that we
    “Pretty-print” device names.

dot435:/etc/cron.d # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1[/color]

That’s an old version that you should look to update to a supported
release, SLES11 SP4 or SLES12 SP1.
[color=blue]

dot435:/etc/cron.d # sar -V
sysstat version 8.1.5
(C) Sebastien Godard (sysstat orange.fr)

dot435:/etc/cron.d # cat sysstat

crontab for sysstat

Activity reports every 5 minutes everyday

*/5 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1
-S ALL 1 1

Update reports every 6 hours

50 5,11,17,23 * * * root [ -x /usr/lib64/sa/sa2 ] && exec
/usr/lib64/sa/sa2 -Ap

[root@dot380 cron.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)

[root@dot380 cron.d]# sar -V
sysstat version 7.0.2
(C) Sebastien Godard

[root@dot380 cron.d]# cat sysstat

run system activity accounting tool every 5 minutes

*/5 * * * * root /usr/lib64/sa/sa1 1 1

generate summary of process accounting at every 6 hours

50 5,11,17,23 * * * root /usr/lib64/sa/sa2 -Ap

  1. Which versions of sar (sar -V) and ksar are in play here?
    We have written a script which gets the sar files from all the Linux
    servers (SuSE/Redhat) and generates ksar graphs. The script runs on a
    edhat server (dot118). The “Sar” version on the SuSE/RedHat server and
    the “kSar” version on the redhat server where we generate the ksar
    graphs for the sar files collected are listed below:

dot435:/etc/cron.d # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

dot435:/etc/cron.d # sar -V
sysstat version 8.1.5
(C) Sebastien Godard (sysstat orange.fr)

[root@dot380 cron.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)

[root@dot380 cron.d]# sar -V
sysstat version 7.0.2
(C) Sebastien Godard[/color]

So the version of sar on SLES11 SP1 (8.1.5) which doesn’t work is later
than that with RHEL5.11 (7.0.2) which does.
[color=blue]

[root@dot118 kSar-5.0.6]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

[root@dot118 kSar-5.0.6]# /usr/bin/java -jar
/sysinfo/kSar-5.0.6/kSar.jar -version
kSar version: 5.0.6

  1. Are you running SLES11 and RHEL5 on servers with the same hardware or
    different?
    All the SuSE and RedHat servers are VM’s that run on the vmware
    infrastructure.

dot435:/etc/cron.d # dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 2c c0 b7 12-da 61 00 29 a3
UUID: 42342FD7-DA61-00CF49E029A3
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

[root@dot380 cron.d]# dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 34 10 0c 3c-f1 de 8b 62 41
UUID: 4234100C-F1A2-18BFDE8B6241
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

[root@dot118 kSar-5.0.6]# dmidecode | grep -A 8 “System Information”
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-42 a6 2e 6b b5-58 45 d0 b3 48
UUID: 4234E2C8-5845-D0DCC976B348
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified[/color]

In asking my questions I was looking for differences between your SLES
and RHEL servers and it would seem the sar version is the difference
with SLES being a later version. Given that ksar 5.0.6 was released in
December 2008 before the sysstat 8.1.5 package in SLES11 SP1 I’m
guessing ksar doesn’t understand the sar file format for the SLES
version of sar. Perhaps the output needs converting as per
https://sourceforge.net/p/ksar/bugs/13/ ?

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Hi Simon,

Thanks for your comments; I found a solution.

The CPU utilization report in older SAR version (sysstat version 7.0.2) display’s the following fields:
%user %nice %system %iowait %steal %idle

However on the system where ksar graphs were not showing the I/O wait the CPU utilization report was displaying additional fields (sysstat version 8.1.5):
%usr %nice %sys %iowait %steal %irq %soft %guest %idle

man page shows “sar -A” is equivalent to “-bBdqrRSuvwWy -I SUM -I XALL -n ALL -u ALL -P ALL”

I used the “sar -bBdqrRSuvwWy -I SUM -I XALL -n ALL -P ALL” to generate the SAR reports instead. Without the “-u ALL” option CPU utilization report had only the basic fields and the ksar graphs generated showed CPU time spent on I/O wait.

lnxbum Wrote in message:
[color=blue]

Thanks for your comments; I found a solution.

The CPU utilization report in older SAR version (sysstat version 7.0.2)
display’s the following fields:
%user %nice %system %iowait %steal %idle

However on the system where ksar graphs were not showing the I/O wait
the CPU utilization report was displaying additional fields (sysstat
version 8.1.5):
%usr %nice %sys %iowait %steal %irq %soft
%guest %idle

man page shows “sar -A” is equivalent to “-bBdqrRSuvwWy -I SUM -I XALL
-n ALL -u ALL -P ALL”

I used the “sar -bBdqrRSuvwWy -I SUM -I XALL -n ALL -P ALL” to generate
the SAR reports instead. Without the “-u ALL” option CPU utilization
report had only the basic fields and the ksar graphs generated showed
CPU time spent on I/O wait.[/color]

Nice work!

Thanks for the report back.

Simon Flood
SUSE Knowledge Partner

----Android NewsGroup Reader----
http://usenet.sinaapp.com/