Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 02-16-2010, 12:58 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Dividing cpu time between Virtual Machines


I have an Ubuntu server system on which i want to run multiple virtual machines (VMware Server).
But some VMs are more important than others, and i wish to guarantee them a minimum cpu access (if they need it).

example 1 : if there were 2 VMs, i would like to be able to grant one of them a number of cpu cycles 4 times greater. Also, if one of the machines isn't using all it's allocated cpu time, the other one must be able to use it.
example 2 more complex : if i have N VMs, i want to be able to set for each VM a minimum % of cpu usage. But if a VM doesn't need it, another VM can use it. This way, every VM gets at least the % indicated, but can receive more if the other VMs are not using their time.

I know about 'cpulimit' , but it only knows how to set an upper limit. I need something that is flexible at the upper part.

Does anyone have a solution for this ?
Thanks in advance
Old 02-17-2010, 07:24 AM   #2
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,315

Rep: Reputation: 98
At least with VMWare Server I am not aware of a way to do this.
Old 02-17-2010, 07:40 AM   #3
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
The ESX versions allow control of both reserved CPU (measured in MHz rather than percentage), and a limit. However, I don't think this is available in the Server version.

You can of course control the priorities of VMs (either from the vmx configuration, or simply by using the nice levels in Linux). But that doesn't give any guarantee of a minimum CPU percentage, since higher priority tasks will get preference.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Machines eating 100% CPU relpats_eht Linux - Software 5 11-10-2008 06:25 PM
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 07:26 AM
virtual machines fazliddin Linux - Newbie 3 04-15-2008 01:22 AM
virtual machines ?'s tlarkin SUSE / openSUSE 7 10-05-2006 04:15 PM
Virtual Machines Berticus Linux - Newbie 8 10-18-2005 12:38 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration