[pve-devel] [PATCH] remove openvz fairscheduler code from fairsched patch

Alexandre DERUMIER aderumier at odiso.com
Wed May 27 12:09:02 CEST 2015


>>Qemu use several threads, maybe you need to add each thread separately if you
>>do it this way 

Oh yes, indeed ,that was the problem,


 for tid in $(ls -1 /proc/$PID/task); do
    echo $tid > /cgroup/cpu/qemu/$vmid/tasks
  done

 echo XXX > /sys/fs/cgroup/cpu/qemu/$vmid/cpu.shares 


Now, It's working fine !



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 27 Mai 2015 08:10:23
Objet: Re: [pve-devel] [PATCH] remove openvz fairscheduler code from fairsched patch

Qemu use several threads, maybe you need to add each thread separately 
if you 
do it this way (because those thread are already started)? 

On 05/27/2015 05:02 AM, Alexandre DERUMIER wrote: 
> But for qemu, It doesnt work, I don't known why 
> 
> mkdir /sys/fs/cgroup/cpu/qemu/vmid/ 
> echo qemupid > /sys/fs/cgroup/cpu/qemu/vmid/tasks 
> echo XXX > /sys/fs/cgroup/cpu/qemu/vmid/cpu.shares 
> 
> 


More information about the pve-devel mailing list