Difference between top and vmstat

General support questions including new installations
Post Reply
O'Prometheus
Posts: 3
Joined: 2015/03/20 12:55:46

Difference between top and vmstat

Post by O'Prometheus » 2015/03/20 13:03:28

Hi.. I'm having an issue with a Centos 5.6 server & noticed that top reports 0.0% cpu idle time. (user and system typically split 80/20 but varying)

The actual issue is intermittent network disconnects that may (arguably) be caused by a spinning cpu. However, vmstat reports 99% idle time (much as I would normally expect it).

I'm planning a reboot to see if that can help (it hasn't been rebooted in a year and a half) but I'm intrigued what might be causing the discrepancy.

Any thoughts welcome.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Difference between top and vmstat

Post by gerald_clark » 2015/03/20 14:27:39

So you have not applied any security/bug fixes for a year and a half.
Do a yum update, reboot, and see if the issue still exists.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Difference between top and vmstat

Post by TrevorH » 2015/03/20 14:27:57

You need to update. Badly. 5.6 was released over 4 years ago and there have been numerous security related patches since then. Some of them serious. If you update then you'll get a 4 year newer kernel and many bugs have been fixed in that too.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

O'Prometheus
Posts: 3
Joined: 2015/03/20 12:55:46

Re: Difference between top and vmstat

Post by O'Prometheus » 2015/03/20 14:35:18

Alas update isn't an option. Its a regulated system

Its also isolated, so security is mitigated (a little, at least).

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Difference between top and vmstat

Post by gerald_clark » 2015/03/20 14:47:01

Well, if you can't do any updates, you will have to live with it the way it is.

O'Prometheus
Posts: 3
Joined: 2015/03/20 12:55:46

Re: Difference between top and vmstat

Post by O'Prometheus » 2015/03/23 11:25:06

Well, if you can't do any updates, you will have to live with it the way it is.
I guess that much I'm comfortable with, but I like to know what it is I'm living with, if there is a difference between top and vmstat, which is authoritative?

The presenting complaint is something that may well have been patched, too, and I'll have to live with that, too.

Post Reply