unix snmp - difference between system and kernel cpu time -


performing snmpwalk on oid .1.3.6.1.4.1.2021.11 produces following cpuraw values:

ucd-snmp-mib::sscpurawuser.0 = counter32: 3191634181 ucd-snmp-mib::sscpurawnice.0 = counter32: 2586628 ucd-snmp-mib::sscpurawsystem.0 = counter32: 480833488 ucd-snmp-mib::sscpurawidle.0 = counter32: 3578238833 ucd-snmp-mib::sscpurawwait.0 = counter32: 461331879 ucd-snmp-mib::sscpurawkernel.0 = counter32: 422462005 ucd-snmp-mib::sscpurawinterrupt.0 = counter32: 7890770 ucd-snmp-mib::sscpurawsoftirq.0 = counter32: 50480713 

i note values, exception of idle + kernel, have matching values (close enough) in /proc/stat:

cpu  3191634876 2586629 422462086 7873206561 461331924 7890771 50480723 0 cpu0 1551975573 184783 190766514 1008267162 200070032 7243827 44073977 0 cpu1 610948559 324197 73381486 2228315579 87505437 51905 2054732 0 cpu2 494534866 1024716 75891701 2342123809 86260984 289810 2089023 0 cpu3 534175876 1052931 82422383 2294500009 87495469 305228 2262989 0  intr 8208380331 4267093007 3 0 4 4 0 0 0 3 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3538 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 328178999 0 0 0 0 0 0 0 997463093 0 0 0 0 0 0 0 2374098089 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 241543587 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ctxt 163836165157 btime 1351100022 processes 224876777 procs_running 5 procs_blocked 0 

i'd know difference between sscpurawsystemand sscpurawkernel , how relates contents of /proc/stat

sscpurawsystem

the number of 'ticks' (typically 1/100s) spent processing system-level code.

on multi-processor system, 'sscpuraw*' counters cumulative on cpus, sum typically n*100 (for n processors).

this object may implemented combination of 'sscpurawwait(54)' , 'sscpurawkernel(55)' counters, care must taken when summing overall raw counters.

sscpurawkernel

the number of 'ticks' (typically 1/100s) spent processing kernel-level code.

this object not implemented on hosts underlying operating system not measure particular cpu metric. time may included within 'sscpurawsystem(52)' counter.

on multi-processor system, 'sscpuraw*' counters cumulative on cpus, sum typically n*100 (for n processors).


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -