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.

directory <strong>on</strong> a daily basis. The files are kept for two days and are then removed<br />

automatically. With the wkldout command, it is possible to extract data from the<br />

collected set related to CPU usage.<br />

To start data collecti<strong>on</strong>, the wkldmgr -start command has to be issued first, then<br />

the wkldagent -start command can be used. Example 5-45 shows how to use<br />

the wkldout command to extract data in ASCII format from that collected set.<br />

Example 5-45 Extracting performance data with the wkldout command<br />

$ ls /home/ios/perf/wlm<br />

xmwlm.061014 xmwlm.061015 xmwlm.log1 xmwlm.log2<br />

$ wkldout -filename /home/ios/perf/wlm/xmwlm.061015 | tee xmwlm_061015<br />

.<br />

.<br />

.<br />

Time="2006/10/15 10:20:49", PagSp/%totalused=0.69<br />

Time="2006/10/15 10:20:49", Proc/swpque=0.03<br />

Time="2006/10/15 10:20:49", Proc/runque=1.01<br />

Time="2006/10/15 10:20:49", CPU/glwait=0.22<br />

Time="2006/10/15 10:20:49", CPU/gluser=0.07<br />

Time="2006/10/15 10:20:49", CPU/glkern=0.78<br />

Time="2006/10/15 10:23:49", WLM/wlmstate=1.00<br />

Time="2006/10/15 10:23:49", PagSp/%totalused=0.69<br />

Time="2006/10/15 10:23:49", Proc/swpque=0.08<br />

Time="2006/10/15 10:23:49", Proc/runque=1.02<br />

Time="2006/10/15 10:23:49", CPU/glwait=0.25<br />

Time="2006/10/15 10:23:49", CPU/gluser=0.07<br />

Time="2006/10/15 10:23:49", CPU/glkern=0.78<br />

Time="2006/10/15 10:26:49", WLM/wlmstate=1.00<br />

$ ls<br />

backup nohup.out smit.transacti<strong>on</strong><br />

c<strong>on</strong>fig smit.log viosfirewall.rules<br />

ioscli.log smit.script xmwlm_061015<br />

$<br />

As shown, to save the data into a file, the tee command has to be used since<br />

redirecti<strong>on</strong> of output to a file is not allowed in the restricted shell envir<strong>on</strong>ment of<br />

the Virtual I/O Server. The file can then be transferred <strong>on</strong>to another machine and<br />

analyzed or displayed by other utilities. As also can be seen from the output, the<br />

data recorded by the wkldmgr and wkldagent commands c<strong>on</strong>tains <strong>on</strong>ly<br />

measurements for CPU and paging space. To collect data c<strong>on</strong>taining<br />

measurements for disk and network usage, use topas recording or nm<strong>on</strong><br />

recording.<br />

Chapter 5. <strong>System</strong> management 347

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

Saved successfully!

Ooh no, something went wrong!