VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
8 Replies Last post: Nov 16, 2009 6:59 AM by MKguy  

Run away `top` in RHEL5 virtual machine posted: Nov 6, 2009 11:54 AM

Click to view Brian Buchanan's profile Novice 19 posts since
Sep 17, 2007

I have a VM of a minimal install of RedHat Enterprise Linux 5.4 i386 on ESXi 4 (downloaded from hp.com) on a HP ProLiant DL380 G4.

CPU usage on the host is pretty excessive and I'm trying to figure out why. When I run `top` it goes crazy with refreshes as if I had set a delay of 0. If I set the delay to 60 `top -d 60` then I get updates about 1 per second.

If I run vmstat, I see interrupts around 13k. If I run it with a delay, the interrupts jump to about 45k, regardless of the interval (`vmstat 1` shows 45k interrupts, `vmstat 10` showd 45k interrupts)

I have vmware tools installed.

My suspicion is that my minimal install is missing some critical service, like acpid or cpuspee. This is a samba fileserver, and the only one of four RHEL5 VMs on this host giving this trouble.

Thanks for any advice or links.

Re: Run away `top` in RHEL5 virtual machine

1. Nov 11, 2009 2:37 AM in response to: Brian Buchanan
Click to view jintoa's profile Enthusiast 36 posts since
Jan 16, 2009

What is the memory and CPU given to the RHEL VM?

Can you shutdown other RHEL5 VMs on the host and try?

any Memory/CPU reservation exists ?

Resource pool exist on the host?

Can you copy the vmware.log for that VM?


Signature: If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanx!

Re: Run away `top` in RHEL5 virtual machine

2. Nov 11, 2009 3:34 AM in response to: Brian Buchanan
Click to view TAMW's profile Enthusiast 29 posts since
Aug 7, 2007
High interupts en cpu usage for an almost idle stock linux 2.6.x kernel is normal.
Its because the kernel runs an 1000hz timer

You can "fix" it for RHEL 5.4 to Add: divider=10 to the kernel boot parameters in grub.conf:

Example: grup.conf

title Red Hat Enterprise Linux Server (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet divider=10
initrd /initrd-2.6.18-164.el5.img

Re: Run away `top` in RHEL5 virtual machine

3. Nov 11, 2009 9:40 PM in response to: Brian Buchanan
Click to view jintoa's profile Enthusiast 36 posts since
Jan 16, 2009
kb.vmware.com/kb/1006113

Signature: If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanx!

Re: Run away `top` in RHEL5 virtual machine

4. Nov 13, 2009 9:36 AM in response to: Brian Buchanan
Click to view alear's profile Lurker 2 posts since
Sep 3, 2009
I have tried divider=10 without success. I had to revert my virtuals to the 2.6.18-128.7.1.el5 kernel.

Re: Run away `top` in RHEL5 virtual machine

5. Nov 14, 2009 6:38 AM in response to: alear
Click to view paulredpath's profile Lurker 2 posts since
Dec 29, 2006

You can check which options VMware recommend at http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427

We have had similar issues on RHEL and centOS guests, but since setting the options only 1/2 have exhibited the issue, I find a proper hard shutdown seems to fix it.


Re: Run away `top` in RHEL5 virtual machine

6. Nov 14, 2009 7:40 AM in response to: paulredpath
Click to view Texiwill's profile Guru 10,205 posts since
Jan 13, 2004
Hello,

Moved to the Virtual Machine and Guest OS forum.


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009
Virtualization Practice Analyst
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'
Also available 'VMWare ESX Server in the Enterprise'
SearchVMware Pro|Blue Gears|Top Virtualization Security Links|
Virtualization Security Round Table Podcast

Re: Run away `top` in RHEL5 virtual machine

7. Nov 16, 2009 5:23 AM in response to: paulredpath
Click to view alear's profile Lurker 2 posts since
Sep 3, 2009
We have followed the instructions at the KB article 1006427. A hard shutdown did not solve our issue. These servers have very high throughput as a web server and outbound mail server. After only 1 day, these servers relapse back into the described behavior.

Re: Run away `top` in RHEL5 virtual machine

8. Nov 16, 2009 6:59 AM in response to: Brian Buchanan
Click to view MKguy's profile Hot Shot 86 posts since
Sep 24, 2007
As mentioned in http://kb.vmware.com/selfservice/microsites/microsite.do?cmd=displayKC&docType=kc&externalId=1006427&sliceId=1&docTypeID=DT_KB_1_1, the divider kernel option is not required for 5.4.

on a HP ProLiant DL380 G4.
The 360/380 Proliant G4 series is not supported on ESX4.

1. Can you check %RDY in esxtop for that VM (if it is higher than ~5)?
2. How many vCPUs does the VM have assigned and what HW Version did you create it with?
3. Are there CPU reservations/limits or is a CPU affinity set for that VM?
4. Does a normal install of 5.4 have this issue too?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities