vmstat: negative values?! (20 Views)
Reply
Advisor
Alberto Rocha
Posts: 22
Registered: ‎01-06-2004
Message 1 of 5 (20 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
Please use plain text.
Respected Contributor
Orhan Biyiklioglu
Posts: 153
Registered: ‎09-12-2005
Message 2 of 5 (20 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.

hth
Please use plain text.
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 3 of 5 (20 Views)

Re: vmstat: negative values?!

http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2005-06/0017.html

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. ""

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Please use plain text.
Respected Contributor
Borislav Perkov
Posts: 478
Registered: ‎11-06-2002
Message 4 of 5 (20 Views)

Re: vmstat: negative values?!

Hi Alberto,

It is overflow.
Try first to clear with

vmstat -z

Regrads,
Borislav

Please use plain text.
Advisor
Alberto Rocha
Posts: 22
Registered: ‎01-06-2004
Message 5 of 5 (20 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.
AR
Please use plain text.
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