12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

454CHAPTER 22Monitoring and Tuning ApplicationsWhen OProfile is stopped, the daemon is stopped, meaning that it stops collectingsamples. Reports can also be generated while the daemon is running if you need to collectsamples at set intervals.Two tools, opreport and opannotate, can be used to analyze the OProfile samples. Theexact executables used to generate the samples must be used with these tools to analyzethe data. If they need to be changed after collecting the data, back up the executableswith the sample data before updating the executables on the system.Using opreport to Analyze SamplesIf opreport is run without any arguments, the number of samples per executable alongwith their percentages relative to the total number of samples are displayed as shown inListing 22.5.LISTING 22.5Example Output from opreportCPU: Core 2, speed 1596 MHz (estimated)Counted CPU_CLK_UNHALTED events (Clock cycles when not halted)with a unit mask of 0x00 (Unhalted core cycles) count 100000CPU_CLK_UNHALT...|samples| %|------------------1233664 50.0256 vmlinux286210 11.6059 libfb.so150459 6.1012 libc-2.5.so139635 5.6623 libpthread-2.5.so103056 4.1790 libglib-2.0.so.0.1200.341031 1.6638 libperl.so34991 1.4189 libsw680lx.so34311 1.3913 libvcl680lx.so29216 1.1847 dbus-daemon28631 1.1610 Xorg25432 1.0313 libuno_sal.so.325125 1.0188 libdbus-1.so.3.0.019195 0.7784 libgobject-2.0.so.0.1200.318094 0.7337 e100017945 0.7277 libpython2.4.so.1.013699 0.5555 libcairo.so.2.9.213477 0.5465 libgklayout.so12966 0.5258 libata12545 0.5087 oprofiled11922 0.4834 libmozjs.so9604 0.3894 libX11.so.6.2.08631 0.3500 libsfx680lx.so8023 0.3253 libgdk-x11-2.0.so.0.1000.47880 0.3195 oprofile[truncated due to length]

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

Saved successfully!

Ooh no, something went wrong!