[pve-devel] qemu-server: cgroups && cpu.shares implementation

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Thu May 28 12:55:29 CEST 2015

Am 28.05.2015 um 12:51 schrieb Dietmar Maurer:
>> Here the patches serie for implemtation of cpuunits through cgroups
> If you implement it inside qemu-server you have a race-condition, because
> you do it too late and qemu already started the threads? Or maybe only parts
> of necessary threads are already created?
> So wouldn't it be easier to do it inside qemu?

Not tested but what about this:

 # in child
 put current pid into cgroup
 exec kvm

 # parent

<= wouldn't this put all threads kvm creates automatically into the
right cgroup?


More information about the pve-devel mailing list