vmstat: negative values?! (91 Views)
Posts: 22
Registered: ‎01-06-2004
Message 1 of 5 (91 Views)

vmstat: negative values?!

Hello, i'm monitoring a largely stressed system. That's an rp5470 (L3000-5xx) w/ 2 550MHz CPU 4 GB of mem running a J2EE app and an Oracle 9i database.

What is confusing me now is the negative values in the response to the "vmstat -f" command :

# vmstat -f
3031208 forks, -433171143 pages, average= -142.90

Any hints?
Thx in advance
Respected Contributor
Posts: 153
Registered: ‎09-12-2005
Message 2 of 5 (91 Views)

Re: vmstat: negative values?!

The values in vmstat are signed data types so they can overflow as the counter gets larger. This should appear if your system is up for a very long time or the memory page swapping is too high.

Honored Contributor
Posts: 4,194
Registered: ‎04-07-2005
Message 3 of 5 (91 Views)

Re: vmstat: negative values?!


It says, ..."vmstat tries to present an average since boot on the first line. The
first line of vmstat output is utter garbage and must be discarded"

I was only running vmstat for a single count. When run with mutiple counts
the stats after the first line are reported accurately. ""

"A ship in the harbor is safe, but that is not what ships are built for"
Respected Contributor
Posts: 478
Registered: ‎11-06-2002
Message 4 of 5 (91 Views)

Re: vmstat: negative values?!

Hi Alberto,

It is overflow.
Try first to clear with

vmstat -z


Posts: 22
Registered: ‎01-06-2004
Message 5 of 5 (91 Views)

Re: vmstat: negative values?!

Thank you for all the replies. In fact i suspected of some kind of overflow but now i have the confirmation.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.