Re: cgroup for VM - does it work properly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu 06 Mar 2014 00:42:27 CET, Eric Blake wrote:
> On 03/05/2014 04:32 PM, Martin Pavlásek wrote:
>> Hi
>>
>> I tried to restrict usage of some running VM by cpu.shares (i.e. set to
>> 10 from original 1024) on loaded system and it seem doesn't work as I
>> expected... all running processes has same CPU usage (by htop) :-/
>
> How exactly are you changing the cgroup settings?  Are you trying to
> directly modify cgroup files (unsupported), or using the libvirt API
> (such as via virsh schedinfo)?
>
Via mounted virtualfs - 
/sys/fs/cgroup/cpu/machine/<name-of-VM>/{emulator,vcpu0}/cpu.shares

--
--
Martin Pavlásek <mpavlase@xxxxxxxxxx>
 OpenStack QA Associate/Red Hat Czech/BRQ
 irc: mpavlase

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux