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.

Traditi<strong>on</strong>al performance measurements were based <strong>on</strong> sampling, typically with a<br />

100 Hz sample rate (each sample corresp<strong>on</strong>ds to a 10ms tic). Each sample is<br />

sorted into <strong>on</strong>e of four categories:<br />

user<br />

The interrupted code is outside the AIX 5L kernel.<br />

sys<br />

iowait<br />

idle<br />

The interrupted code is inside the AIX 5L kernel and the<br />

currently running thread is not waitproc.<br />

The currently running thread is waitproc and there is an<br />

I/O pending.<br />

The currently running thread is waitproc and there is no<br />

I/O pending.<br />

This traditi<strong>on</strong>al mechanism must stay unchanged to preserve binary compatibility<br />

with earlier tools.<br />

This sampling-based approach breaks down in a virtualized envir<strong>on</strong>ment, as the<br />

assumpti<strong>on</strong> that the dispatch cycle of each virtual processor is the same no<br />

l<strong>on</strong>ger holds true. A similar problem exists with SMT; if <strong>on</strong>e thread is c<strong>on</strong>suming<br />

100 percent of the time <strong>on</strong> a physical CPU, sample-based reporting would report<br />

the system 50 percent busy (<strong>on</strong>e processor at 100 percent, the other at 0<br />

percent), but in fact the processor is really 100 percent busy.<br />

5.5.2 Process Utilizati<strong>on</strong> Resource Register (PURR)<br />

The PURR is simply a 64-bit counter with the same units for the timebase and<br />

decrementer registers that provide per-thread processor utilizati<strong>on</strong> statistics.<br />

Figure 5-24 <strong>on</strong> page 323 shows the logical CPUs and the relati<strong>on</strong>ship of the<br />

PURR registers within a single <str<strong>on</strong>g>POWER</str<strong>on</strong>g>5 processor (core) and the two hardware<br />

threads. With SMT enabled, each hardware thread is seen as a logical<br />

processor.<br />

The timebase register shown in Figure 5-24 <strong>on</strong> page 323 is simply a hardware<br />

register that is incremented at each tic. The decrementer register provides<br />

periodic interrupts.<br />

322 <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!