Jon,

A patch for the Server team to evaluate.

                      Michael


On 04/06/2017 10:59 PM, Launchpad Bug Tracker wrote:
> bugproxy (bugproxy) has assigned this bug to you for Ubuntu:
>
> == Comment: #0 - SEETEENA THOUFEEK <sthou...@in.ibm.com> - 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.el7_1.pkvm3_1_1.1200.0.ppc64le 
> (c158f2u07os.pok.stglabs.ibm.com)        06/17/2016      _ppc64le_       (160 
> CPU)
>
> 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@bssrikanth-tp ~]$ sar -m CPU 1 5
> Linux 4.3.4-300.fc23.x86_64 04/15/2016        _x86_64_        (4 CPU)
>
> 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 93662b1dbe3eed926d67d418cd4996ede9686679
> Author: Breno Leitao <breno.lei...@gmail.com>
> 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 <breno.lei...@gmail.com>
>
> ** Affects: ubuntu
>      Importance: Undecided
>      Assignee: Taco Screen team (taco-screen-team)
>          Status: New
>
>
> ** Tags: architecture-ppc64le bugnameltc-153240 severity-medium 
> targetmilestone-inin---

-- 
Michael Hohnbaum
OIL Program Manager
Power (ppc64el) Development Project Manager
Canonical, Ltd.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680705

Title:
  sar -m CPU returns 0 and interval is invalid

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysstat/+bug/1680705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to