]> git.ipfire.org Git - thirdparty/man-pages.git/commit
clone.2: Note a performance benefit of CLONE_INTO_CGROUP
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 19 May 2020 19:41:08 +0000 (21:41 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 19 May 2020 19:41:08 +0000 (21:41 +0200)
commit4fe3acd9e1197554001a93d61d4ec65a0b19745e
tree39c30305c0de45b7b7c24c089add065ba97ad49e
parentc0e4ab63568af9ba75ae75b728e1f0ba475cb37f
clone.2: Note a performance benefit of CLONE_INTO_CGROUP

As noted in email by Christian Brauner:

    I forgot to mention that spawning directly into a target
    cgroup is also more efficient than moving it after creation.
    The specific reason is mentioned in the commit message
    [ef2c41cf38a], the write lock of the semaphore need not be
    taken in contrast to when it is moved afterwards. That
    implementation details is not that interesting but it might
    be interesting to know that it provides performance benefits
    in general.

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/clone.2