VMware Cloud Community
ralexgolden
Contributor
Contributor
Jump to solution

ESXi 4.1 - Windows 7 - 4 cores assigned - 2 cores in OS

I've assigned 4 CPUs to a Windows 7 VM in ESXi. Task Manager only shows the OS as using two cores... Not four...

Why is this?

Please see the attached images for more details.

ESXi_screenshot.png

ESXi_screenshot2.png

0 Kudos
1 Solution

Accepted Solutions
DSTAVERT
Immortal
Immortal
Jump to solution

Windows 7 license only allows 2 CPUs. You can change the cores per processor count setting so that Windows is presented with 2 dual core processors.

-- David -- VMware Communities Moderator

View solution in original post

0 Kudos
11 Replies
DSTAVERT
Immortal
Immortal
Jump to solution

Windows 7 license only allows 2 CPUs. You can change the cores per processor count setting so that Windows is presented with 2 dual core processors.

-- David -- VMware Communities Moderator
0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

In ESX(i) a physical core is treated as a virtual processor.

-- David -- VMware Communities Moderator
mittim12
Immortal
Immortal
Jump to solution

If I'm not mistaken Windows 7 is limited to two Cpu.   You can try tricking it by using the method described in the blog post below.

http://www.yellow-bricks.com/2009/06/04/per-processor-licenses-for-your-application/

0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

Here is the KB article http://kb.vmware.com/kb/1010184

-- David -- VMware Communities Moderator
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

As David said add cpuid.coresPerSocket = 2 to the configuration. This will present the CPUs as two DualCore CPUs to the VM.

see http://kb.vmware.com/kb/1010184

André

PS: David was faster Smiley Wink

ralexgolden
Contributor
Contributor
Jump to solution

Tweaking the settings as mentioned above... Will that actually improve performance much? Benchmarking can be painfull..

The application running can utlize up to 4 threads at once...

0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

The recommended process is start with one vCPU and increase as necessary.

-- David -- VMware Communities Moderator
0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

You want to provide the resources that the application requires. Since it is possible to adjust settings in small increments in a virtual environment it is possible to tailor the resources to just what is needed and no more.

-- David -- VMware Communities Moderator
0 Kudos
ralexgolden
Contributor
Contributor
Jump to solution

If anyone runs accross any benchmarking please let me know. Otherwise I'll run benchmarks in the next 7 days... 

0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

PS: David was faster Smiley Wink

Only time that happened. Smiley Wink

-- David -- VMware Communities Moderator
0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

A benchmark would only be useful if it benchmarked your process in your expected workload. A Ferrari isn't going get to the corner store any faster than the station wagon (you will look much cooler though). Your application may be able to use 4 cores but if your use patterns don't, it is a huge waste and you reduce possible VM density. http://www.vmware.com/products/vmmark/overview.html

-- David -- VMware Communities Moderator
0 Kudos