23.10.2014 Views

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Evaluating CPU utilizati<strong>on</strong><br />

Traditi<strong>on</strong>ally, evaluating CPU utilizati<strong>on</strong> has been a simple exercise. It is sufficient<br />

to measure the amount of time a CPU is busy in a given interval. With multiple<br />

processor systems, the utilizati<strong>on</strong> <strong>on</strong> all CPUs is averaged to provide a single<br />

figure.<br />

When sharing resources, a different approach is required and the <str<strong>on</strong>g>POWER</str<strong>on</strong>g>5<br />

processor includes the new PURR register to measure CPU usage in a<br />

virtualized envir<strong>on</strong>ment. Using shared processors in the PURR register and<br />

system m<strong>on</strong>itoring is discussed in 5.5, “M<strong>on</strong>itoring a virtualized envir<strong>on</strong>ment” <strong>on</strong><br />

page 321.<br />

Just because a CPU is close to or above 100% utilizati<strong>on</strong> in an uncapped,<br />

shared-processor partiti<strong>on</strong> does not necessarily indicate that there is shortage of<br />

CPU resources. It simply indicates that this partiti<strong>on</strong> is receiving more than its<br />

entitlement (guaranteed minimum). PLM and WLM use different strategies for<br />

evaluating the CPU load within a partiti<strong>on</strong>.<br />

WLM measures resource utilizati<strong>on</strong> to determine if priorities need adjusting. PLM<br />

uses load because the resource utilizati<strong>on</strong> does not tell you if you need more<br />

resources.<br />

PLM<br />

PLM uses a figure called the load average. This gives an indicati<strong>on</strong> of the<br />

average length of the AIX 5L run queue over an interval of time (these are similar<br />

to the figures given in the first line of the w and uptime commands for 1, 5, and 15<br />

minute intervals). PLM uses a weighted-average window, which allows it to cater<br />

for both short-term spikes and l<strong>on</strong>g-term trends, and normalizes the figure to the<br />

number of c<strong>on</strong>figured logical processors. The lsrsrc -Ad <strong>IBM</strong>.LPAR command<br />

displays the load average value used by PLM.<br />

WLM<br />

WLM periodically examines the real resources of the whole system and each of<br />

the WLM classes. If the CPU resources are not fully used, then WLM will not<br />

intervene. When the CPU occupati<strong>on</strong> starts approaching 100%, WLM will start<br />

adjusting the priorities of all the processes in the classes so that the real CPU<br />

usage of each class approaches the specified target.<br />

In the case of uncapped shared processor partiti<strong>on</strong>s, the class CPU c<strong>on</strong>sumpti<strong>on</strong><br />

is calculated based <strong>on</strong> the CPU time of the partiti<strong>on</strong>:<br />

c<strong>on</strong>sumati<strong>on</strong>(CLASS)<br />

=<br />

cpu_time(CLASS)<br />

---------------------------------------------------------<br />

cpu_time(PARTITION)<br />

434 <str<strong>on</strong>g>Advanced</str<strong>on</strong>g> <str<strong>on</strong>g>POWER</str<strong>on</strong>g> <str<strong>on</strong>g>Virtualizati<strong>on</strong></str<strong>on</strong>g> <strong>on</strong> <strong>IBM</strong> <strong>System</strong> <strong>p5</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!