[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sys cpu usage



Hello,

Tuesday, August 26, 2008, 20:54:22, Michael Loftis wrote:

> What kernel are you running BTW?  And debian version?  Kernels prior to 2.6
> didn't do well on high interrupt loads P4, Xeon, and Core2's because of

I'm running 2.6.24.3 on debian etch.

> Someone else mentioned oprofile to profile kernel CPU usage too.

I tried oprofile, but the results are not very clear for me. If I
understand it well, everything which is vmlinux is counted as sys cpu,
right?

bill:~:# opreport | head
CPU: P4 / Xeon with 2 hyper-threads, speed 2992.65 MHz (estimated)
Counted GLOBAL_POWER_EVENTS events (time during which processor is not stopped) with a unit mask of 0x01 (mandatory) count 100000
GLOBAL_POWER_E...|
  samples|      %|
------------------
142167514 31.3228 vmlinux
 97946264 21.5798 mysqld
 73468449 16.1868 libc-2.3.6.so
 68429064 15.0765 libphp5.so
 20384681  4.4912 perl


bill:~:# opreport -l | head -30
warning: /oprofile could not be found.
CPU: P4 / Xeon with 2 hyper-threads, speed 2992.65 MHz (estimated)
Counted GLOBAL_POWER_EVENTS events (time during which processor is not stopped) with a unit mask of 0x01 (mandatory) count 100000
warning: /etc/ld.so.cache is not in a usable binary format.
warning: /usr/lib/locale/locale-archive is not in a usable binary format.
warning: /var/log/rrd/eth0.rrd is not in a usable binary format.
samples  %        image name               app name                 symbol name
95243636 21.5689  mysqld                   mysqld                   (no symbols)
71545755 16.2023  libc-2.3.6.so            libc-2.3.6.so            (no symbols)
66640228 15.0914  libphp5.so               libphp5.so               (no symbols)
20330122  4.6040  perl                     perl                     (no symbols)
11724900  2.6552  vmlinux                  vmlinux                  port_inb
10713862  2.4263  vmlinux                  vmlinux                  __copy_user_intel
10572065  2.3942  vmlinux                  vmlinux                  __copy_to_user_ll
8592559   1.9459  vmlinux                  vmlinux                  system_call
6383308   1.4456  apache-ssl               apache-ssl               (no symbols)
5983763   1.3551  vmlinux                  vmlinux                  kunmap_atomic
5311477   1.2028  vmlinux                  vmlinux                  __d_lookup
5127355   1.1611  libz.so.1.2.3            libz.so.1.2.3            (no symbols)
4969862   1.1255  ZendOptimizer.so         ZendOptimizer.so         (no symbols)
4453856   1.0086  libpthread-2.3.6.so      libpthread-2.3.6.so      __read_nocancel
4441345   1.0058  oprofiled                oprofiled                (no symbols)


-- 
  bYE, Marki


Reply to: