From: zhou r. <zho...@gm...> - 2011-05-02 06:13:17
|
the machine has 24 cores, "top" shows MY_APPLICATION use about 40% cpu. (Irix mode on) but from oprofile, it only use 0.8799% cpu? why? CPU: Intel Architectural Perfmon, speed 2666.01 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 CPU_CLK_UNHALT...| samples| %| ------------------ 656980 40.1202 vmlinux 473114 28.8919 vmlinux 298978 18.2579 MY_KERN_DRIVER 165838 10.1273 ixgbe 14408 0.8799 MY_APPLICATION 10443 0.6377 libc-2.11.1.so 8251 0.5039 processor 4658 0.2845 oprofiled |
From: Maynard J. <may...@us...> - 2011-05-04 15:57:38
|
On 05/02/2011 1:13 AM, zhou rui wrote: > the machine has 24 cores, > > "top" shows MY_APPLICATION use about 40% cpu. (Irix mode on) > > but from oprofile, it only use 0.8799% cpu? Your MY_APPLICATION binary may only be responsible for 0.8799% of cpu cycles during this profile run, but what about library calls and syscalls into the kernel? In order to associate library and kernel samples with the executable, you need to do 'opcontrol --separate=lib,kernel' before starting the profiler. Also, be sure to stop oprofile immediately upon completion of MY_APPLICATION if you want to match up the oprofile percentage with what you were seeing in top. -Maynard > why? > > CPU: Intel Architectural Perfmon, speed 2666.01 MHz (estimated) > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a > unit mask of 0x00 (No unit mask) count 100000 > CPU_CLK_UNHALT...| > samples| %| > ------------------ > 656980 40.1202 vmlinux > 473114 28.8919 vmlinux > 298978 18.2579 MY_KERN_DRIVER > 165838 10.1273 ixgbe > 14408 0.8799 MY_APPLICATION > 10443 0.6377 libc-2.11.1.so > 8251 0.5039 processor > 4658 0.2845 oprofiled > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |