sar -m CPU returns 0 and interval is invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Undecided
|
Unassigned | ||
sysstat (Ubuntu) |
Fix Released
|
Undecided
|
Taco Screen team |
Bug Description
== Comment: #0 - SEETEENA THOUFEEK <email address hidden> - 2017-04-07 00:44:28 ==
+++ This bug was initially created as a clone of Bug #140363 +++
=========
Issue
=========
'sar -m CPU <interval> <count>' command does not return valid CPU FREQ values on powerkvm. I have the result pasted below captured on powerkvm vs x86 fedora system.
On PowerKVM:
[root@c158f2u07os ~]# sar -m CPU 1 5
Linux 4.4.4-1.
06:30:28 AM CPU MHz
06:30:36 AM all 0.00
06:30:44 AM all 0.00
06:30:53 AM all 0.00
06:31:01 AM all 0.00
06:31:09 AM all 0.00
Average: all 0.00
>>Though I have given 1 sec interval, the real interval seems to be different as shown above. And FREQ MHz is shown 0.
Same run on fedora x86 server:
[srikanth@
Linux 4.3.4-300.
12:08:47 PM CPU MHz
12:08:48 PM all 1793.18
12:08:49 PM all 2214.71
12:08:50 PM all 2170.32
12:08:51 PM all 1758.41
12:08:52 PM all 2444.70
Average: all 2076.26
This is the commit id:
commit 93662b1dbe3eed9
Author: Breno Leitao <email address hidden>
Date: Mon Oct 31 09:23:59 2016 -0400
sar: Improve cpuinfo read for POWER architecture
Currently CPU frequency is not being read properly on POWER archicture.
It shows the frequency as:
# sar -m CPU 1 5
...
06:30:28 AM CPU MHz
06:30:36 AM all 0.00
This is caused because /proc/cpuinfo is differently between Intel and
POWER.
This patch simply fix the parsing function (read_cpuinfo).
Signed-off-by: Breno Leitao <email address hidden>
tags: | added: architecture-ppc64le bugnameltc-153240 severity-medium targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → sysstat (Ubuntu) |
Changed in sysstat (Ubuntu): | |
status: | New → Incomplete |
Changed in ubuntu-power-systems: | |
status: | New → Incomplete |
tags: | added: ubuntu-17.04 |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Fix Released |
Jon,
A patch for the Server team to evaluate.
On 04/06/2017 10:59 PM, Launchpad Bug Tracker wrote: el7_1.pkvm3_ 1_1.1200. 0.ppc64le (c158f2u07os. pok.stglabs. ibm.com) 06/17/2016 _ppc64le_ (160 CPU) bssrikanth- tp ~]$ sar -m CPU 1 5 fc23.x86_ 64 04/15/2016 _x86_64_ (4 CPU) 26d67d418cd4996 ede9686679 ppc64le bugnameltc-153240 severity-medium targetmilestone -inin-- -
> bugproxy (bugproxy) has assigned this bug to you for Ubuntu:
>
> == Comment: #0 - SEETEENA THOUFEEK <email address hidden> - 2017-04-07 00:44:28 ==
> +++ This bug was initially created as a clone of Bug #140363 +++
>
>
> =========
> Issue
> =========
>
> 'sar -m CPU <interval> <count>' command does not return valid CPU FREQ
> values on powerkvm. I have the result pasted below captured on powerkvm
> vs x86 fedora system.
>
>
> On PowerKVM:
>
> [root@c158f2u07os ~]# sar -m CPU 1 5
> Linux 4.4.4-1.
>
> 06:30:28 AM CPU MHz
> 06:30:36 AM all 0.00
> 06:30:44 AM all 0.00
> 06:30:53 AM all 0.00
> 06:31:01 AM all 0.00
> 06:31:09 AM all 0.00
> Average: all 0.00
>
>>> Though I have given 1 sec interval, the real interval seems to be
> different as shown above. And FREQ MHz is shown 0.
>
> Same run on fedora x86 server:
> [srikanth@
> Linux 4.3.4-300.
>
> 12:08:47 PM CPU MHz
> 12:08:48 PM all 1793.18
> 12:08:49 PM all 2214.71
> 12:08:50 PM all 2170.32
> 12:08:51 PM all 1758.41
> 12:08:52 PM all 2444.70
> Average: all 2076.26
>
> This is the commit id:
>
> commit 93662b1dbe3eed9
> Author: Breno Leitao <email address hidden>
> Date: Mon Oct 31 09:23:59 2016 -0400
>
> sar: Improve cpuinfo read for POWER architecture
>
> Currently CPU frequency is not being read properly on POWER archicture.
> It shows the frequency as:
> # sar -m CPU 1 5
> ...
> 06:30:28 AM CPU MHz
> 06:30:36 AM all 0.00
>
> This is caused because /proc/cpuinfo is differently between Intel and
> POWER.
> This patch simply fix the parsing function (read_cpuinfo).
>
> Signed-off-by: Breno Leitao <email address hidden>
>
> ** Affects: ubuntu
> Importance: Undecided
> Assignee: Taco Screen team (taco-screen-team)
> Status: New
>
>
> ** Tags: architecture-
--
Michael Hohnbaum
OIL Program Manager
Power (ppc64el) Development Project Manager
Canonical, Ltd.