Hi,
I want to set up a VM for Ubuntu on a Windows and Mac host that emulates four cores while only two 'physical' cores are available on the host system (the GUI 'allows' for that but advises against it). I want to do this to setup a VM for a parallel programming class to build, run and debug a relatively simple parallel application and am therefore not too concerned about performance, as long as a debugger runs well.
I have seen posts that discourage this and can see how this can result in sub-optimal performance. Besides performance ... are there any stability issues associated with the approach? Is there a risk of race conditions that would cause a parallel application to 'lock up'.
Thank you in advance for any info.
Arend
VM with more cores than available on host
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: VM with more cores than available on host
Well, a debugger needs plenty of resources to run well. Since you're overcommitting your hardware, you're using more resources than you have available so the debugger might not work at all.as long as a debugger runs well.
You bet there are. Stability is the first thing that goes out the window when you're overcommitting your system. The parallel application won't only lock up, the whole system could, and probably would. That's why it's not advised to give all cores to the Guest. Give even more than the available cores is asking for a system crash eventually. Try to fill a bucket with 20 liters of water when it can only hold 10. It will overflow.are there any stability issues associated with the approach? Is there a risk of race conditions that would cause a parallel application to 'lock up'.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.