AIX: Power 5
Submitted by Stef on Mon, 06/12/2010 - 21:54
Docs:
Power5
With power5 processors, you can share the processor capacity between the lpars. The vmstat has 2 extra numbers:vmstat 1 1 System configuration: lcpu=2 mem=512MB ent=0.10 kthr memory page faults cpu ----- ----------- ------------------------ ------------ ----------------------- r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec 0 0 180484 5857 0 0 0 0 0 0 18 190 182 1 5 93 0 0.01 10.7From
man vmstat
:
pc Number of physical processors consumed. Displayed only if the partition is running with shared processor. ec The percentage of entitled capacity consumed. Displayed only if the partition is running with shared processor.
how to monitor
problem
A remark, the created vmstat fie is __not__ compatible because 2 extra DS entries are created. So you have to convert all the vmstat.rrd files or remove them. If you remove them, you loose the old information. Take a look at AddDstoRRD for a script to add a DS to an rrd.vmstat processing
We have to add the 2 extra columns and we also have to remove the =.= from the numbers. Apply this to the hobbit source:diff -r hobbit-4.2.0/hobbitd/rrd/do_vmstat.c hobbit-4.2.0.ori/hobbitd/rrd/do_vmstat.c 79,80d78 < { 17, "cpu_pc" }, < { 18, "cpu_ec" }, 327,337d324 < < /* Removing . and , from the numbers */ < char *p1; < while ( (p1 = strchr(p,'.')) != NULL ) { < strcpy (p1, p1+1) ; < } < char *p2; < while ( (p2 = strchr(p,',')) != NULL ) { < strcpy (p2, p2+1) ; < }
vmstat graphs
Add this to =hobbitgraph.cfg=:[vmstat-ec] TITLE Used Entitled CPU Capacity YAXIS ec % DEF:ec=vmstat.rrd:cpu_ec:AVERAGE LINE2:ec#00CC00 GPRINT:ec:LAST:ec \: %5.1lf%s%% (cur) GPRINT:ec:MAX: \: %5.1lf%s%% (max) GPRINT:ec:MIN: \: %5.1lf%s%% (min) GPRINT:ec:AVERAGE: \: %5.1lf%s%% (avg)\n [vmstat-pc] TITLE Used Physical CPU YAXIS pc (100 = 1 CPU) DEF:pc=vmstat.rrd:cpu_pc:AVERAGE LINE2:pc#00CC00 GPRINT:pc:LAST:pc \: %5.1lf%s (cur) GPRINT:pc:MAX: \: %5.1lf%s (max) GPRINT:pc:MIN: \: %5.1lf%s (min) GPRINT:pc:AVERAGE: \: %5.1lf%s (avg)\n
adding graphs to trend page
If you want the add the ec and pc graphs, you have to add this to the AIX hosts inbb-hosts
:
TRENDS:*vmstat:vmstat1|vmstat-pc|vmstat-ec|vmstat8