Package: procps
Version: 1:3.3.2-3
Severity: normal

Dear Maintainer,

If you just run vmstat or vmstat 1 the first line shows an average of 
certain counters since machine boot.  However, I believe that at least
the average interrupt and context switch counts are broken.

Observer the following output:

edb@lapedb:~/today$ grep -E -e  "ctxt|intr" /proc/stat  | cut -d \  -f 1-2 ; 
cat /proc/uptime ; vmstat 
intr 1051786
ctxt 1184893
1188.50 9001.64
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0      0 6979028  77512 642036    0    0    73    18  111  125  3  1 95  2


So we have 1051786 interrupts during 1188 seconds which gives an average of:
>>> 1051786/1188
885

Same for context switches:
>>> 1184893/1188
997

One thing however which should be noted is that if I multiply vmstats output 
by 8, I get very close to the real results. (Why the magical 8 ? Believe it 
or not but my laptop has a quad core cpu with ht:

edb@lapedb:~/today$ cat /proc/cpuinfo | grep processor | wc -l
8

)

I took a look at the code, and si/so bi/bo are also calculated the same way, 
so these might also be broken. 


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages procps depends on:
ii  initscripts   2.88dsf-22.1
ii  libc6         2.13-27
ii  libncurses5   5.9-4
ii  libncursesw5  5.9-4
ii  libprocps0    1:3.3.2-3
ii  libtinfo5     5.9-4
ii  lsb-base      4.1+Debian0

Versions of packages procps recommends:
ii  psmisc  22.16-1

procps suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to