Re: [PATCH 16/53] vircgroup: introduce virCgroupV2AddTask

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

 



On 10/02/2018 10:44 AM, Pavel Hrdina wrote:
> In cgroups v2 we need to handle threads and processes differently.
> If you need to move a process you need to write its pid into
> cgrou.procs file and it will move the process with all its threads
> as well.  The whole process will be moved if you use tid of any thread.
> 
> In order to move only threads at first we need to create threaded group
> and after that we can write the relevant thread tids into cgroup.threads
> file.  Threads can be moved only into cgroups that are children of
> cgroup of its process.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  src/util/vircgroupv2.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux