Squeezing Virtual Machines Out of CPU Cores

virtual machine per cpu core Are you trying to squeeze every CPU cycle out of your dual, quad or hex core processors for making more VMs per core?

Unfortunately for those who like to over-clock CPUs for gaming, over utilizing CPU doesn’t quite work the same on virtual machine hosts (ESX/ESXi/XenServer or Hyper-V).

How many Virtual Machines Per Core?

From my experience, I know you can get anywhere from 8 – 10 vCPUs per core, but I have found a sweet spot of 4 VMs (that’s right I said VMs not vCPUs) per core will provide decent performance for the user and not affect hardware performance.

Remember, you don’t want users waiting 30 – 60 seconds for a reboot,  logon or screen refresh…

Too many VMs or vCPU per core will cause lag and the same thing goes for over utilizing memory which is another topic of concern. Over utilization of CPU cores and memory will cause system users frustration due to poor VM performance. (Newer versions of ESXi have improved this but it’s still risky to over provision.)

[ad code=2 align=center]

What Eric has to Say about Virtual Machines Per Core

Eric Siebert has written an excellent article on SearchNetworking.com called “Sizing server hardware” which goes into “nuts and bolts” details for sizing virtual host server hardware.

My 1 to 4 ration for VM density per logical CPU is my best practice but Eric goes into much more detail.

Always! Always! Think of the users experience when considering your best practices.

Sure, deploying a 100 VMs on a single host sounds good, but what kind of performance and experience will users have?

I’ve had my share of complaints over slow virtual servers and believe me, you don’t want users to start complaining that your (that’s right, your!) virtual servers are slow.

Rule of Thumb on VMs Per Core

Rule of thumb: Keep it simple, 4 VMs per CPU core – even with today’s powerful servers.

Don’t use more than one vCPU per VM unless the application running on the virtual server requires two or unless the developer demands two and calls your boss. VMs with one vCPU run more efficient and from my experience nobody seems to notice, except for – maybe, over-clockers!

Here’s something I wrote a while back:

“The measurement of a successful virtual infrastructure deployment is not how many VMs can be hosted per host, it’s how many users can be satisfactorily serviced without them knowing they are using virtual technology. Virtualization should be invisible. Once users start noticing foot prints in the snow, it’s over…”

Your turn to share your tips and comments on VMs per CPU core optimization?

Want more tips like this? Yes!

Subscribe to www.VMinstall.com and get personal tips sent to your email inbox.

2 Responses to “Squeezing Virtual Machines Out of CPU Cores”
  1. William Savage
  2. Abdullah

We're listening. Go ahead and share your ideas?

vSphere 6
8 Updates That Make vSphere 6 Better – Keith Barker
25 VMware Interview Questions: Tough & Technical (Download)
VMware jobs in Phoenix
VMware Jobs in Phoenix Arizona (Comparing Opportunities)
DevOps training
10 Reasons VMware Admins Should Boost OpenStack Skills
MSDevOps Guide
Microsoft DevOps: 25+ Power-Packed Windows SysAdmin Skills (NEW Guide!)
continuous integration tools
DevOps Training Courses That Will Give You The Edge (Perfect For Beginners Who Want Skills That Are Noticed By Google & Facebook…)
Why DevOps Fails: How To Get Back On Track
Why DevOps Fails: How To Get Back On Track
DevOps jobs
How Listening to the David Linthicum Cloud Podcast Turned into a Goldmine of Cloud & DevOps Job Opportunities
Click here to learn how to Optimize WordPress Speed
WordPress Speed Optimization: Part 4 – VPS Case Study To Make VMinstall.com Rank Higher In Google Through Faster Hosting & High Availability @ Lower Cost
Best Hosting for WordPress
Case Study: Best VPS For Easy WordPress Migration
Cloudways Review: 12 Pros & Cons From My Deep Dive Testing (VPS Series: Part 2)
ServerPilot Review: Installing WordPress On DigitalOcean (VPS Series: Part 1)
Storage Engineer Skills
Why Storage Engineer Skills Are HOT! (Can You Say Big Data?)
Rise of the Robots
I’m Amazed After Reading Rise of the Robots – Best Jobs In 2017 (You won’t Guess what’s going on!)
top virtual reality jobs
30+ Awesome Virtual Reality Jobs That Take You From Boring To Amazing! (Must Read…)
Thinking Like Seth Godin
How To STOP A 300% Salary Loss Because YOU Think Like A SysAdmin: Start Thinking Like Seth Godin (Read Now!)
3 Open Source Storage Software Alternatives For Beginners
shades of devops
Free DevOps eBook Project (Read It Now!)
How to install Genymotion
How To Install Genymotion for Beginners (Includes Google Play)
20 Questions VMware Newbies Want Answered (Free Career Guide)