Date: Wed, 5 Sep 2001 16:47:32 -0700 (PDT) From: mark wolgemuth <mark@node.to> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/30360: vmstat returns impossible data Message-ID: <200109052347.f85NlWb42283@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 30360 >Category: bin >Synopsis: vmstat returns impossible data >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 05 16:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: mark wolgemuth >Release: 4.2-STABLE FreeBSD 4.2-STABLE #2: Thu Feb 1 16:01:55 GMT 2001 >Organization: employease inc >Environment: FreeBSD rogueblue.eease.com 4.2-STABLE FreeBSD 4.2-STABLE #2: Thu Feb 1 16:01:55 GMT 2001 root@rogueblue.tek.eease.com:/usr/src/sys/compile/ROGUEBLUE i386 This is a 2 CPU machine !!! >Description: After extended uptime: rogueblue root ~> uptime 7:40PM up 193 days, 17:02, 2 users, load averages: 0.16, 0.10, 0.08 on a reasonably busy server, vmstat returns this: rogueblue root ~ *> vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr da0 md0 in sy cs us sy id 0 0 0 271196 13148 154 0 0 0 204 1 0 0 26 46 75 -1750 -1843 3693 The problem here is the usr / sys / idle count: -1750 / -1843 / 3693 >How-To-Repeat: The box needs to have a large number of cpu ticks. I can get this number for you if I knew how. Run vmstat with no arguments. It returns bad data. >Fix: I imagine the problem is that there is an integer somewhere that cannot handle the number of clock ticks this machine has had, with 2 cpus after 193 days. The integer is then improperly taking on a sign. I have experienced the same problem on Redhat linux machines (except there the vmstat segfaults instead returning incorrect data). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109052347.f85NlWb42283>
