Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-31 Thread Wen Congyang
At 10/25/2011 05:13 AM, Eric Blake Write: > On 10/24/2011 02:54 PM, sethuraman subbiah wrote: > >> [root@sbc11 ssubbiah]# virsh schedinfo rubis_ws --set vcpu_quota=50 >> Scheduler : posix >> error: invalid scheduler option: vcpu_quota=50 >> >> I get the same error for "virsh schedinfo rubies_

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread sethuraman subbiah
>> >> I find that my version is 0.9.4. >> >> [root@sbc11 ssubbiah]# virsh --version >> 0.9.4 >> >> Should I do some modifications,enable options or add some patch to get the >> capability to set cap ? Thanks for all your help. > > I found this comment in the code: > >/* If we does not kno

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread Eric Blake
On 10/24/2011 02:54 PM, sethuraman subbiah wrote: [root@sbc11 ssubbiah]# virsh schedinfo rubis_ws --set vcpu_quota=50 Scheduler : posix error: invalid scheduler option: vcpu_quota=50 I get the same error for "virsh schedinfo rubies_ws --set vcpu_quota 50" . I find that my version is 0.9.4

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread sethuraman subbiah
On Oct 24, 2011, at 4:46 PM, Eric Blake wrote: > On 10/24/2011 02:39 PM, sethuraman subbiah wrote: >> Hi, >> >> >> >> When i use "[root@hgcc11 ssubbiah]# virsh schedinfo rubis_ws --cap 50" , I >> dont see the cap value being set and I am able to see only cpu shares. > > schedinfo --cap is ob

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread Eric Blake
On 10/24/2011 02:39 PM, sethuraman subbiah wrote: Hi, On Oct 24, 2011, at 4:30 PM, Eric Blake wrote: On 10/24/2011 02:24 PM, sethuraman subbiah wrote: Great, I have one more question. Is it possible to set the quota during run time from the host os ? Using virsh ? Thank you. virsh schedinf

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread sethuraman subbiah
Hi, On Oct 24, 2011, at 4:30 PM, Eric Blake wrote: > On 10/24/2011 02:24 PM, sethuraman subbiah wrote: >> Great, I have one more question. Is it possible to set the quota during run >> time from the host os ? Using virsh ? Thank you. > > virsh schedinfo can both query and alter these cpu tunabl

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread Eric Blake
On 10/24/2011 02:24 PM, sethuraman subbiah wrote: Great, I have one more question. Is it possible to set the quota during run time from the host os ? Using virsh ? Thank you. virsh schedinfo can both query and alter these cpu tunables, and that includes doing it while the guest is running.

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread sethuraman subbiah
Hi, - Regards, Sethuraman Subbiah Graduate Student - NC state University M.S in Computer Science On Oct 24, 2011, at 4:20 PM, Eric Blake wrote: > On 10/24/2011 01:50 PM, sethuraman subbiah wrote: >> Hi , >> >> I was previously using xen and currently moved to KVM. I am using libvirt to >> ma

Re: [libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread Eric Blake
On 10/24/2011 01:50 PM, sethuraman subbiah wrote: Hi , I was previously using xen and currently moved to KVM. I am using libvirt to manage these VMs. In den's credit scheduler , I had the ability to set a cap on the cpu usage for a VM. But I was not able to find a similar substitute in KVM. I

[libvirt-users] Hard limit for the cpu usage of a VM

2011-10-24 Thread sethuraman subbiah
Hi , I was previously using xen and currently moved to KVM. I am using libvirt to manage these VMs. In den's credit scheduler , I had the ability to set a cap on the cpu usage for a VM. But I was not able to find a similar substitute in KVM. I find that we can use cgroups to provide shares for