All of lore.kernel.org
 help / color / mirror / Atom feed
* Cgroup v2 bug: "domain invalid" node can't be converted to "threaded"
@ 2018-09-21 13:18 Michael Kerrisk (man-pages)
  2018-10-02 21:07 ` Tejun Heo
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2018-09-21 13:18 UTC (permalink / raw)
  To: Tejun Heo
  Cc: lkml, open list:CONTROL GROUP (CGROUP),
	Serge E. Hallyn, Amin Jamali, Joao De Almeida Pereira

Hello Tejun,

While experimenting with cgroups, we've found what looks to be a bug.
I eventually simplified this to what I think are the minimum steps to
demonstrate the issue.

The following shell session demonstrates the issue:

[Kernel was booted with cgroup_no_v1=all]
# cd /sys/fs/cgroup/unified
# cat cgroup.subtree_control    # show that no controllers are enabled

# mkdir -p mycgrp/a/b/c
# echo threaded > mycgrp/a/b/cgroup.type

At this point, the hierarchy looks as follows:

    mycgrp [d]
        a [dt]
            b [t]
                c [inv]

Now let's make node "a" threaded (and thus "mycgrp" s made "domain threaded"):

# echo threaded > mycgrp/a/cgroup.type

By this point, we now have a hierarchy that looks as follows:

    mycgrp [dt]
        a [t]
            b [t]
                c [inv]

But, when we try to convert the node "c" from "domain invalid" to
"threaded", we get ENOTSUP on the write():

# echo threaded > mycgrp/a/b/c/cgroup.type
sh: echo: write error: Operation not supported

Your thoughts?

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-04 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21 13:18 Cgroup v2 bug: "domain invalid" node can't be converted to "threaded" Michael Kerrisk (man-pages)
2018-10-02 21:07 ` Tejun Heo
2018-10-04 18:14   ` Michael Kerrisk (man-pages)
2018-10-04 18:20     ` Tejun Heo
2018-10-04 19:12       ` Michael Kerrisk (man-pages)
2018-10-04 20:29       ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.