Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can a Hyper-V VM CPU be optimized

Posted on 2016-09-30
7
Medium Priority
?
191 Views
Last Modified: 2016-10-02
One of our heavy usage VM's at times has the CPU jump to 85 %.   It has 4 Virtual Processors.   Are there any tricks to get better CPU performance?
0
Comment
Question by:J.R. Sitman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Expert Comment

by:Jack Rider
ID: 41824364
Why not just increase the number of vCPUs?
0
 
LVL 42

Expert Comment

by:Adam Brown
ID: 41824373
1. Make sure the Host is not configured to use Hyper-threading. Hyper-V's CPU management system requires the use of physical cores to run properly.
2. Make sure the VMs on the host are not configured to utilize more CPUs than are available. CPU double booking on the host can cause random excess utilization. This is part of why you don't want to use hyper-threading, since it can end up with multiple instances of VMs trying to use the same physical CPU.

Aside from those things, you're mostly going to be dealing with the OS on the VM, which would require a good bit more planning and examination to really handle. That said, though, 85% isn't a bad utilization level for short periods. At that level, you're not seeing a CPU bottleneck for performance, so I wouldn't worry *too* much about it. But you'll want to spend some time examining which processes use the most CPU, particularly during CPU spikes. If stuff related to the application the server is running are the only things spiking CPU utilization. Also use process explorer when you do this, since it will give you a better view of memory usage.

In the end, though, tracking down potential performance sinks is a very involved process that can take a long time to be successful at. Unless your hardware is completely pegged for long periods and users are complaining about slowness, you're usually better off letting things go as they are than you are tracking down bottlenecks and re-designing the infrastructure.
0
 

Author Comment

by:J.R. Sitman
ID: 41824376
Thanks.  Do you see anything I need to be concerned about?

hyperv.png
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 96

Accepted Solution

by:
Lee W, MVP earned 2000 total points
ID: 41824509
REDUCE the number of CPUs.  Unless you have a LOT of cores, you don't want to assign that many if at all possible.  See http://www.zdnet.com/article/virtual-cpus-the-overprovisioning-penalty-of-vcpu-to-pcpu-ratios/
0
 

Author Comment

by:J.R. Sitman
ID: 41825009
How many should there be?
0
 
LVL 96

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 2000 total points
ID: 41825072
Read the article - I start with 2 so I have one in case a process goes nuts and hogs one.  But if your machine has 4 cores and you assign all 4 to the VM, it's going to have performance issues compared to 2 to the VM.  If you server has 16, then it's probably ok with 4, but EVEN SO, I would START with two and only add as I determined it was needed - and then only one at a time.
0
 

Author Comment

by:J.R. Sitman
ID: 41825429
thanks
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question