Your message dated Sat, 18 Feb 2023 00:07:40 +0000
with message-id <[email protected]>
and subject line Bug#668580: fixed in procps 2:4.0.3-1
has caused the Debian Bug report #668580,
regarding [vmstat] performs faulty averaging of interrupt/ctxt switch counters
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
668580: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668580
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Source: procps
Source-Version: 2:4.0.3-1
Done: Craig Small <[email protected]>
We believe that the bug you reported is fixed in the latest version of
procps, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Craig Small <[email protected]> (supplier of updated procps package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 18 Feb 2023 10:17:15 +1100
Source: procps
Architecture: source
Version: 2:4.0.3-1
Distribution: unstable
Urgency: medium
Maintainer: Craig Small <[email protected]>
Changed-By: Craig Small <[email protected]>
Closes: 668580 1025915 1026326 1027963 1031343
Changes:
procps (2:4.0.3-1) unstable; urgency=medium
.
* New upstream release
- docs: Translated manpages installed
- pgrep: make --terminal respect other criteria
- ps: c flag shows command name again Closes: #1026326
- skill: Match on -p again Closes: #1025915
- vmstat: Referesh memory statistics Closes: #1027963
- vmstat: Fix initial si,so,bi,bo,in & cs values Closes: #668580
* Update standards version
* Improve cross-building Closes: #1031343
Checksums-Sha1:
edbf9b8f1a31f5af7a98c5117516795231519adc 2108 procps_4.0.3-1.dsc
3d22fa8b89fcfff3c4d8fc944b491ec185b06616 1294992 procps_4.0.3.orig.tar.xz
100b51903483d187e811c7d5e3165f4ba93d5d3b 27640 procps_4.0.3-1.debian.tar.xz
cdad9e2da54abb495ef4e33142b00a1183e410c6 7570 procps_4.0.3-1_amd64.buildinfo
Checksums-Sha256:
e11ee01ff5514b6c20c5e32dd2922a2db2331ed40867084b2d0bcd696c83bfcb 2108
procps_4.0.3-1.dsc
303c8ec4f96ae18d8eaef86c2bd0986938764a45dc505fe0a0af868c674dba92 1294992
procps_4.0.3.orig.tar.xz
df8de87ce4c76062f9ff9724599ca57abeb1bb26604a44e9e1de8ae641b10675 27640
procps_4.0.3-1.debian.tar.xz
13caf09ecfbc9538f08e6d24890df44d75b101e188dc35165498701e5fdfc908 7570
procps_4.0.3-1_amd64.buildinfo
Files:
e403b2df68e16d3d1bb88a138a6a8351 2108 admin optional procps_4.0.3-1.dsc
22b287bcd758831cbaf3356cd3054fe7 1294992 admin optional
procps_4.0.3.orig.tar.xz
fde3000161850b35963a3717b166e5d3 27640 admin optional
procps_4.0.3-1.debian.tar.xz
44f1e8b8ef4a1d54b2cf4edc94d06a2f 7570 admin optional
procps_4.0.3-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAmPwEdoACgkQAiFmwP88
hOPkGw//dUlCSaiffKWR+krO6PCSE6EiShG9jhGWQJrI232/ofMWh0EECzKwlUsZ
bVQyKOfOHzl/YTNMSjvzku1gsQSB6oaiyqzh7VqqSwXn/h6RZOFtZWLygljcUaIf
uw27U4/MZkAL/UxK97D0LcGZcIk/sLnRt1+YqyRNbnCYSiAyiWJn8mvlvB2GUrx/
VgdcSr8EaTu66aOoNDdmOnvylwFV1LrUMmGymIOH7cH83Xuv9kk0OnmRKQDrRbQf
C2Cr0llNZbRC5gwWwssRFHX4LjlXNvcRo8ECdhleyaejQYojT1HjlcNS8mM89HYT
q2yHOSH3et2vojFM0zLz/bZwVYm0Kns3RPlWCbFHa1dT0CvgnB9qj/PKkreniJmG
Rio5kuqInOVqfkhx7Fc9Yl9roZNFCKlvcm8no272+78AFIjGf9GdeF2Oq1t4A6PY
LnX10xGf1Ao0wpVSb3JDMj8bDoIMlNFQQ3exPBXXwpN4w0Zn0cK0pVpuSeoEsvnP
CgFfVjIE9UN8VT4dgCkgRnGHMjrehBBhx0w4KDtR7HIllsScDP3Ul4uBYyj8DUv4
nzzV3j77jO6LNLCI07HWW6nc4RC1g4APAQCt4m57c/IN6+H4kS9Qo6/+qiEyabn2
UrU1BxImQdj+Q+fDVm0v0czVhcCzyLCTSYlUa/MHZpkbhvYVrNc=
=pbab
-----END PGP SIGNATURE-----
--- End Message ---