How to get out physc?

Sonny Rao sonny at burdell.org
Tue Aug 23 05:26:16 EST 2005


On Fri, Aug 19, 2005 at 08:50:04AM +0200, matthias.hofer at arz.co.at wrote:
<snip> 
> On IBM Power5-Systems Logical Partitions use up the amount of CPU-time, 
> that they really need. "physc" is the value that represents the amount of 
> Physical CPUs that the LPAR consumes.
> On AIX, sar shows:
> 
> $ sar
> 
> AIX aix0003a 3 5 00C1D7DF4C00    08/19/05
> 
> System configuration: lcpu=4 ent=0.40
> 
> 02:00:00    %usr    %sys    %wio   %idle   physc   %entc
> 02:05:00      77      10       6       7    0.86   215.6
> 02:10:01      44      24      11      22    0.35    87.3
> 02:15:00      39      22      12      27    0.32    80.3
> 02:20:00      45      18      12      25    0.32    79.3
> 02:25:00      35      19      10      35    0.28    70.3
> 02:30:00      41      19       7      33    0.30    76.1
> 02:35:00      23      11       6      60    0.17    43.5
> 02:40:00      78      10       1      11    0.50   125.8
> 02:45:00      90       2       0       7    1.04   260.6
> 02:50:01      90       2       0       7    1.06   264.5
> 02:55:00      90       2       0       7    1.07   266.3
> 03:00:00      91       2       0       7    1.05   263.5
> 03:05:00      88       4       2       7    1.13   283.4
> 03:10:00      87       4       1       7    1.17   293.6
> 03:15:00      90       3       1       7    1.11   277.1
> 03:20:00      90       3       0       7    1.06   265.8
> 03:25:00      91       2       0       7    1.04   261.2
> 03:30:01      90       2       0       7    1.05   263.0
> 03:35:00      91       2       0       7    1.04   260.1
> 03:40:00      90       2       0       7    1.05   263.6
> 03:45:00      91       2       0       7    1.04   259.8
> 
> So, this LPAR used between 0.17 and 1.17 Physical CPUs at a given time.
> vmstat, for example, shows:
> 
> $ vmstat 2 3
> 
> System configuration: lcpu=4 mem=5120MB ent=0.40
> 
> kthr    memory              page              faults              cpu  
> ----- ----------- ------------------------ ------------ 
> -----------------------
>  r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa    pc  
>  ec
>  1  0 697996 457310   0   0   0   0    0   0 505  783 1276 88  3  8  1 
> 1.07 266.4
>  2  0 697996 457310   0   0   0   0    0   0 731 2291 1680 88  4  7  2 
> 1.12 280.7
>  2  0 697996 457310   0   0   0   0    0   0 1096 8121 2482 85  6  7  3 
> 1.17 292.5
> 
> The next-to-last value is "physc" (pc).
> 
> I found out that "nmon" is able to measure and show this value for the 
> LPAR on GNU/Linux, but I hoped for something like sar, for historical 
> data.
> Anybody confident with GNU/Linux on IBM-Power5 with Advanced 
> Virtualization?

Currently, there is no good way to do this in Linux, the tools are
currently being worked on and will be released at some point later
but I'm not sure when.

Sonny
LTC Performance



More information about the Linuxppc64-dev mailing list