Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

imagine 1 Virtual machine with 2 shared cores on quad core CPU 2Ghz speed.

Is it possible to limit this Virtual Machine for 500Mhz of CPU power on both cores? Or to reserve 1Ghz on 1 core for this one VM?

Is it possible to limit for example to 1500Mhz for 2 VMs ? I mean to share 1500Mhz of power of 1 core for 2 VMs.

For example VMware ESXI and Citrix Xenserver can do it easily by creating resource pool where you preshare for example 2x 1Ghz cores and 4GB ram and then you give there for example just only 2 or 10 VMs as you wish. Is it possible in KVM? How? If is, can it do some kind of web based interface for KVM?

Thank you

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can achieve reasonably fine-grained resource allocation with cgroups - the advantage is, that it allows you to have guaranteed reserved resources, which are available for all processes when not used by the applications in the cgroup to which they are allocated.

share|improve this answer
    
Thank you. Could you tell me more about that? Disadvantages + advantages? Is there any other option? –  MIrra Dec 28 '12 at 23:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.