• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1370
  • Last Modified:

vmware vm cpu resource allocation

HP proliant dl380p with 2 processor socket, 8 processor cores per socket, 32 logical processors. It's very confusing to me....
I am setting up 3 vms on vSphere Essentials with the following requirement:
1st vm (Windows 2008 R2 ENT) require 8 Virtual CPUs, 2nd (Windows 2008 R2 ENT) require 4 Virtual CPUs, 3rd (Windows 2008 R2 ENT) require 4 Virtual CPUs.
So what should I choose from the menu?
and is it possible to isolate the physical cpu so that they are not sharing the cpu resource?
vmware cpu
0
okamon
Asked:
okamon
  • 4
  • 4
  • 3
3 Solutions
 
bluedanCommented:
32 logical processors is caluated by = (2 x 8 cores = 16 vCPU x 2 (hyperthreading) = 32 vCPUs)

For 1st vm (Windows 2008 R2 ENT) require 8 Virtual CPUs
 - a) you can just assign 8 virtual sockets or b) 4 virtual sockets and 2 coress per virtual sockets.
  - a) and b) configuration are identical. You are giving 1st VM 8 vCPUs. Same for below.

For 2nd (Windows 2008 R2 ENT) require 4 Virtual CPUs, you can just assign 4 virtual sockets or 2 virtual sockets and 2 coress

For 3rd (Windows 2008 R2 ENT) require 4 Virtual CPUs. you can just assign 2 virtual sockets and 2 cores.

The different between a) and b) is for licensing reasons. Some applications are licensed per CPU not core.  In ESXi 5.0 VMware makes easlier to assign cores to CPUs.

Hope above info helps.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Add a single processor to each VM. (that's a socket).

Do you really need 8 Processors in a Virtual Machine?
0
 
okamonAuthor Commented:
thanks bluedan!
>The different between a) and b) is for licensing reasons. Some applications are licensed per CPU not core.  In ESXi 5.0 VMware makes easlier to assign cores to CPUs

And either a and b give me same performance??
and is it possible to seperate the 2 physical cpu so not are not in share pool?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Just assign Sockets, performance is the same.

1 vCPU (socket) = 1 Core on the physical processor (in real simple terms!)

You cannot seperate the physical processors, but you can create Resource Pools of CPU (MHz)
0
 
bluedanCommented:
Yes, either a and b will give you the exactly the same performance.  You have enought vCPUs to support for the 3 VMs so it should be fine.
0
 
okamonAuthor Commented:
if I use the followign for each vm, is it still valid under my license? I got the VMware vSphere 5 Essentials

- 4 virtual sockets and 2 coress per virtual sockets.
- 2 virtual sockets and 2 coress per virtual sockets.
- 2 virtual sockets and 2 coress per virtual sockets.

In the email they sent me is VMware vSphere 5 Essentials for 1 processor
but after I entered the key in the csphere client, it shows
VMware vSphere 5 Essentials Licensed for 2 physical CPUs (unlimited cores per CPU)
0
 
bluedanCommented:
Yes, its valid.
0
 
okamonAuthor Commented:
Hi bluedan, I know this post is closed but just forgot to ask you one more question.
so I have in total 32 logical cpu and I already assigned it to 3 VM (8 vcpu + 4 vcpu + 4 vcpu)
32 - 16 = 16 now I have 16 vcpu left.
If I setup 3 more vms with (8vcpu + 8vcpu + 4vcpu) , is this possible?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes. we assign 5-6 vCPU per Physical Core.
0
 
okamonAuthor Commented:
but it's not overloading the cpu? or the vm host know how to distribute the unused cpu core (even it's already assigned to other vm)  to the one need it?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
The only way to check if the physical host is "overloaded" is to check performance statistics.
0

Featured Post

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now