LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Dividing cpu time between Virtual Machines


Hello,

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
andrei
 
Old 02-17-2010, 07:24 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,289

Rep: Reputation: 97
At least with VMWare Server I am not aware of a way to do this.
 
Old 02-17-2010, 07:40 AM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,380
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.
 
  


Reply


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


All times are GMT -5. The time now is 09:47 PM.

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