cgroup memo
1 Threads (Tasks (threads) versus processes)
cgroup v1 可以单独操作进程中的线程, man cgroups :
In cgroups v1, a distinction is drawn between processes and tasks. In this view, a process can con‐ sist of multiple tasks (more commonly called threads, from a user-space perspective, and called such in the remainder of this man page). In cgroups v1, it is possible to independently manipulate the cgroup memberships of the threads in a process.