Subject: Re: bin/29981: vmstat(1) shows wrong system calls per interval
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Alexey G. Khramkov <agkhram@mercdev.com>
List: netbsd-bugs
Date: 04/16/2005 06:04:02
The following reply was made to PR bin/29981; it has been noted by GNATS.
From: "Alexey G. Khramkov" <agkhram@mercdev.com>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: bin/29981: vmstat(1) shows wrong system calls per interval
Date: Sat, 16 Apr 2005 11:09:13 +0500
Rui Paulo <rpaulo@netbsd-pt.org> writes:
>>Number: 29981
>>Category: bin
>>Synopsis: vmstat(1) shows wrong system calls per interval
> vmstat(1) shows a wrong number of system calls per interval in the first
> cycle:
> $ vmstat -c 3 5
> procs memory page disks faults cpu
> r b w avm fre flt re pi po fr sr f0 m0 w0 in sy cs us sy id
> 0 0 0 227212 79428 383 23 0 0 17 39 0 0 11 236 4294964578 664 28 8 64
> As you can see, the first value of system calls per interval is wrong. I suspect
> this is due to the lack of proper initialisation of the variable in question
> (maybe an int overflow?), though I haven't looked at the code, yet.
>
> This is a desktop system up for 5 days ATM, and since I never saw this problem I'm
> not going to reboot it right now so I can diagnose it further (I suspect that with
> a reboot the problem goes away, so the category of this PR may be wrong - kern instead
> of bin).
I saw the same big number and my investigation shows IRQ conflict between
my RAID controller and fxp0 (but uptime was ~2 months).
HTH,
--
= Alexey G. Khramkov (agkhram) @ Infotech <agkhram{at}mercdev{dot}com> =
= GPG fingerprint : 944D 0C8B 343B 6C8D 50A1 061A E2DA 3E11 7765 6B47 =