Operating System - HP-UX
1834307 Members
2931 Online
110066 Solutions
New Discussion

vmstat command cpu id shows negative value

 
Ho Fei Wen
Occasional Contributor

vmstat command cpu id shows negative value

My HP-UX server is running very slow, when I issue a command at the command line, it intermittently "hung" for a while before I can continue to type.

The CPU idle is showing negative value from "Vmstat" command.

The LOAD value is showing around 10++ which is much higher than my the rest of the hp server which is around 0.5.

Anybody Can let me know how to find out which processes or is this a hardware problem which causess this!?

I also want to know how actually "top" command calculate the LOAD.

regards,
Fei Wen



Fei Wen
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor

Re: vmstat command cpu id shows negative value

Hi,

"top" calculates the CPU load the same way that "uptime" calculates it i.e. the CPU queue in the past 1, 5 and 15 minutes.

Use "top" or "glance" to identify the processes that are consuming your CPU time the most.

Hope this helps. Regards.

Steven Sim Kok Leong
U.SivaKumar_2
Honored Contributor

Re: vmstat command cpu id shows negative value

hi,
check your boot disk status and all other disks
also.
Check your SCSI controller's status light's particularly for SCSI termination status.
Stop the system and check the SCSI terminators
and SCSI cables. Try Reconnecting the SCSI cables and starting the server.

regards,
U.SivaKumar



Innovations are made when conventions are broken
Michael Tully
Honored Contributor

Re: vmstat command cpu id shows negative value

Hi,

One of the reasons could be that you have one or more zombie processes consuming your CPU. Have a look at the top command for more information. It will show you that processes at the top of the list. If you are unsure post the output either by cut & paste or use the top -f command for more help.

Michael
Anyone for a Mutiny ?
Martin Johnson
Honored Contributor

Re: vmstat command cpu id shows negative value

The last time I had this problem, one of my pagefile disks was bad. Check to see if you ae getting hardware errors.
Ho Fei Wen
Occasional Contributor

Re: vmstat command cpu id shows negative value

When I issue the top command, under CPU states:
there is a LOAD value, anybody know how it was calculated? and how does it link to the %wcpu and %cpu because I am suspecting some of the customer application is causing the high LOAD value and that is why vmstat cpu idle showing negative value.

regards,
Fei Wen
Fei Wen
steven Burgess_2
Honored Contributor

Re: vmstat command cpu id shows negative value

Hi

The 'load' is the ammount of processes waiting to be processed

You can get more information regarding these processes and who is the 'top' user from glance

Steve

take your time and think things through