VMware Cloud Community
yoram123
Contributor
Contributor
Jump to solution

esxtop shows cpu 100% but vm is idle

Hi ,

I have a pc with quad core intel, installed with ESXi 5.5 .

i created vm and installed centos 6.5 in it.

when i check performance using esxtop , i can see all cpu cores are 100% (attached)  .when vm is powered on. (top in vm shows all cpu in idle)

when i power off the vm , the host cpu decrease to 2%.

what can i do to decrease cpu load ?

BR,

Yoram

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

You have the following setting in the VM's configuration file:

monitor_control.halt_desched = false

This tells ESX not to deschedule the guest when it halts.  In other words, this setting specifies that the guest should use 100% CPU.

If you want the VM to yield the CPU when it is idle, you should remove this option.

View solution in original post

0 Kudos
7 Replies
admin
Immortal
Immortal
Jump to solution

Please post a vmware.log file.

0 Kudos
yoram123
Contributor
Contributor
Jump to solution

Hi ,

Thanks for teh support

Attached

0 Kudos
prasannag6
Enthusiast
Enthusiast
Jump to solution

Hi, Can you expand the centos gid and see if other worlds are also utilizing high? type e and enter 150253.. Also limiting the cpu at VM level has any effect?

----------If you found this or any other answer helpful, please consider to award points (use Correct or Helpful buttons). Regards, Prasanna----------
admin
Immortal
Immortal
Jump to solution

You have the following setting in the VM's configuration file:

monitor_control.halt_desched = false

This tells ESX not to deschedule the guest when it halts.  In other words, this setting specifies that the guest should use 100% CPU.

If you want the VM to yield the CPU when it is idle, you should remove this option.

0 Kudos
yoram123
Contributor
Contributor
Jump to solution

Hi ,

Thanks very much for your great assitance.

It solved the issue.

May i ask , i would like to use the centos 6.5 vm as  a router in my lab.

but i would like to avoid jitter and have minmum delay-latency.

Could u recommend on best practice according your experience ?

BR,

Yoram

0 Kudos
admin
Immortal
Immortal
Jump to solution

For minimum jitter and latency, dedicate a NIC to the VM with VMDirectPath I/O and set the latency sensitivity to high.  This will give the VM exclusive affinity to as many CPUs as are configured.  One CPU should be adequate for a router.

0 Kudos
yoram123
Contributor
Contributor
Jump to solution

Hi ,

Thanks again.

Can i set the latency sensitive via vsphere client , configure parameters, as i do not have license to vcenter and found  it very slow on my pc

BR,

Yoram

0 Kudos