Performance penalty of CPU limited algorithms in a VM

WaitingForNehalem

Platinum Member
Aug 24, 2008
2,497
0
71
I am a graduate student in Computer Science and use Linux for development. Some of the algorithms I write take a long time to complete, especially if they aren't vectorized. Using x86 virtualization extensions, I read that the performance penalty of running in the guest vs the host is nearly gone since it essentially time slices the CPU. However, I've heard of problems where number crunching or compiling in a VM is really slow. Also I'm not using a bare metal type 1 hypervisor, just VMWare Player running on Windows 10. Does anyone have any experience with CPU intensive work running in a VM?
 

Hajime

Senior member
Oct 18, 2004
617
0
71
If you are using a type 2 hypervisor like VMWare Player, it is going to be incredibly slow in the circumstances you describe under certain conditions no question.

A type 1 hypervisor with modern hardware can see a peformance penalty in the single digits, but a type 2 can wreck havoc with performance (Based on testing at work, double digit penalties or more) under the same operations.

However, you are using Windows 10. The client Hyper-V in Windows 10 is type 1, and Windows 10 does have a full version of it. Why are you using VMWare Player over Hyper-V?
 
Last edited:

WaitingForNehalem

Platinum Member
Aug 24, 2008
2,497
0
71
I actually didn't know it was type 1. I've tried using Hyper-V but graphics support is quite poor. Modern distros need some type of 3D acceleration for the UI. CentOS 7 for example runs terribly in it and while I do mostly use the terminal, I still need a GUI for looking at image outputs. I guess Ubuntu MATE or a GNOME 2 distro would do better. So it looks like using a type 2 is out of the question.
 

zir_blazer

Golden Member
Jun 6, 2013
1,184
459
136
"VM" and "3D acceleration" in the same Thread? This is for you.

The three big points:
CPU performance wasn't heavily penalyzed, it should be around 10% overhead or so.
GPU is non-existent unless you do VGA Passthrough, otherwise you have either a very basic emulated VGA, or one that does API forwaring for mediocre DX9/OpenGL support but lacks performance.
I/O sucks if you're using file backed storage for VMs. Its performance is decent if you're dealing with big files, but goes to the toilet if you're working with tons of small files. You may want to use a logical volume solution like LVM, but you VMM needs to support doing so, and you need to partition the HD accordingly before using.
 

Fox5

Diamond Member
Jan 31, 2005
5,957
7
81
Virtual machines have poor i/o performance (especially for graphics), and high memory overhead.
User mode cpu performance is nearly untouched though.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |