Does each directory under `/sys/fs/cgroup/` represent a cgroup hierarchy, or a controller? The 2019 Stack Overflow Developer Survey Results Are InIs a cgroup a list of key value pairs or a set of processes?What does hierarchy support do in cgroup?mkdir under /cgroup creates files along with directoriescgroup throttle on child device does not work“cannot allocate memory” error when trying to create folder in cgroup hierarchyCould not find writable mount point for cgroup hierarchy 13 while trying to create cgroupHow to fix “File” *.service “configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling”?How do I read the systemd MemoryHigh value from the /sys/fs/cgroup filesystem?Does Linux represent an opened directory in the same way as an opened file?
If a Druid sees an animal’s corpse, can they Wild Shape into that animal?
Protecting Dualbooting Windows from dangerous code (like rm -rf)
Loose spokes after only a few rides
Deal with toxic manager when you can't quit
Why can Shazam fly?
What is the accessibility of a package's `Private` context variables?
Is this app Icon Browser Safe/Legit?
What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?
What did it mean to "align" a radio?
Are there incongruent pythagorean triangles with the same perimeter and same area?
How to save as into a customized destination on macOS?
Reference request: Oldest number theory books with (unsolved) exercises?
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Can someone be penalized for an "unlawful" act if no penalty is specified?
When should I buy a clipper card after flying to OAK?
Are spiders unable to hurt humans, especially very small spiders?
Does a dangling wire really electrocute me if I'm standing in water?
Is an up-to-date browser secure on an out-of-date OS?
Did 3000BC Egyptians use meteoric iron weapons?
Is flight data recorder erased after every flight?
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
Why do UK politicians seemingly ignore opinion polls on Brexit?
How to support a colleague who finds meetings extremely tiring?
Does the shape of a die affect the probability of a number being rolled?
Does each directory under `/sys/fs/cgroup/` represent a cgroup hierarchy, or a controller?
The 2019 Stack Overflow Developer Survey Results Are InIs a cgroup a list of key value pairs or a set of processes?What does hierarchy support do in cgroup?mkdir under /cgroup creates files along with directoriescgroup throttle on child device does not work“cannot allocate memory” error when trying to create folder in cgroup hierarchyCould not find writable mount point for cgroup hierarchy 13 while trying to create cgroupHow to fix “File” *.service “configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling”?How do I read the systemd MemoryHigh value from the /sys/fs/cgroup filesystem?Does Linux represent an opened directory in the same way as an opened file?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Does each directory under /sys/fs/cgroup/
represent a cgroup hierarchy, or a controller? (I assume it represents a cgroup hierarchy in the following, because multiple controllers can be mounted to the same cgroup hierarchy, while a controller can't be mounted to multiple cgroup hierarchies.)
Do the directories and symlinks directly under
/sys/fs/cgroup/
represent controllers?Do the directories directly under
/sys/fs/cgroup/
represent
cgroup hierarchies?Are
cpu,cpuacct
,cpu
, andcpuacct
considered different
controllers but the same cgroup hierarchy?Are
net_cls,net_prio
,net_cls
, andnet_prio
considered
different controllers but the same cgroup hierarchy?Must a cgroup be in exactly one cgroup hierarchy (i.e. one directory
under/sys/fs/cgroup/
, if I am correct), no more no less?All the directories under
/sys/fs/cgroup/
have a subdirectory
nameddocker
. Isdocker
a cgroup, and does it belong to all
those cgroup hierarchies represented by the directories under/sys/fs/cgroup/
?
Thanks.
$ ls -l /sys/fs/cgroup/
total 0
dr-xr-xr-x 5 root root 0 Apr 5 17:52 blkio
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpu -> cpu,cpuacct
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpuacct -> cpu,cpuacct
dr-xr-xr-x 5 root root 0 Apr 5 17:52 cpu,cpuacct
dr-xr-xr-x 3 root root 0 Apr 5 17:52 cpuset
dr-xr-xr-x 5 root root 0 Apr 5 17:52 devices
dr-xr-xr-x 3 root root 0 Apr 5 17:52 freezer
dr-xr-xr-x 3 root root 0 Apr 5 17:52 hugetlb
dr-xr-xr-x 5 root root 0 Apr 5 17:52 memory
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_cls -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 net_cls,net_prio
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_prio -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 perf_event
dr-xr-xr-x 5 root root 0 Apr 5 17:52 pids
dr-xr-xr-x 2 root root 0 Apr 5 17:52 rdma
dr-xr-xr-x 6 root root 0 Apr 5 17:52 systemd
dr-xr-xr-x 5 root root 0 Apr 5 17:52 unified
linux-kernel cgroups
add a comment |
Does each directory under /sys/fs/cgroup/
represent a cgroup hierarchy, or a controller? (I assume it represents a cgroup hierarchy in the following, because multiple controllers can be mounted to the same cgroup hierarchy, while a controller can't be mounted to multiple cgroup hierarchies.)
Do the directories and symlinks directly under
/sys/fs/cgroup/
represent controllers?Do the directories directly under
/sys/fs/cgroup/
represent
cgroup hierarchies?Are
cpu,cpuacct
,cpu
, andcpuacct
considered different
controllers but the same cgroup hierarchy?Are
net_cls,net_prio
,net_cls
, andnet_prio
considered
different controllers but the same cgroup hierarchy?Must a cgroup be in exactly one cgroup hierarchy (i.e. one directory
under/sys/fs/cgroup/
, if I am correct), no more no less?All the directories under
/sys/fs/cgroup/
have a subdirectory
nameddocker
. Isdocker
a cgroup, and does it belong to all
those cgroup hierarchies represented by the directories under/sys/fs/cgroup/
?
Thanks.
$ ls -l /sys/fs/cgroup/
total 0
dr-xr-xr-x 5 root root 0 Apr 5 17:52 blkio
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpu -> cpu,cpuacct
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpuacct -> cpu,cpuacct
dr-xr-xr-x 5 root root 0 Apr 5 17:52 cpu,cpuacct
dr-xr-xr-x 3 root root 0 Apr 5 17:52 cpuset
dr-xr-xr-x 5 root root 0 Apr 5 17:52 devices
dr-xr-xr-x 3 root root 0 Apr 5 17:52 freezer
dr-xr-xr-x 3 root root 0 Apr 5 17:52 hugetlb
dr-xr-xr-x 5 root root 0 Apr 5 17:52 memory
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_cls -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 net_cls,net_prio
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_prio -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 perf_event
dr-xr-xr-x 5 root root 0 Apr 5 17:52 pids
dr-xr-xr-x 2 root root 0 Apr 5 17:52 rdma
dr-xr-xr-x 6 root root 0 Apr 5 17:52 systemd
dr-xr-xr-x 5 root root 0 Apr 5 17:52 unified
linux-kernel cgroups
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by usingsystemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions
– Tim
Apr 7 at 21:05
add a comment |
Does each directory under /sys/fs/cgroup/
represent a cgroup hierarchy, or a controller? (I assume it represents a cgroup hierarchy in the following, because multiple controllers can be mounted to the same cgroup hierarchy, while a controller can't be mounted to multiple cgroup hierarchies.)
Do the directories and symlinks directly under
/sys/fs/cgroup/
represent controllers?Do the directories directly under
/sys/fs/cgroup/
represent
cgroup hierarchies?Are
cpu,cpuacct
,cpu
, andcpuacct
considered different
controllers but the same cgroup hierarchy?Are
net_cls,net_prio
,net_cls
, andnet_prio
considered
different controllers but the same cgroup hierarchy?Must a cgroup be in exactly one cgroup hierarchy (i.e. one directory
under/sys/fs/cgroup/
, if I am correct), no more no less?All the directories under
/sys/fs/cgroup/
have a subdirectory
nameddocker
. Isdocker
a cgroup, and does it belong to all
those cgroup hierarchies represented by the directories under/sys/fs/cgroup/
?
Thanks.
$ ls -l /sys/fs/cgroup/
total 0
dr-xr-xr-x 5 root root 0 Apr 5 17:52 blkio
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpu -> cpu,cpuacct
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpuacct -> cpu,cpuacct
dr-xr-xr-x 5 root root 0 Apr 5 17:52 cpu,cpuacct
dr-xr-xr-x 3 root root 0 Apr 5 17:52 cpuset
dr-xr-xr-x 5 root root 0 Apr 5 17:52 devices
dr-xr-xr-x 3 root root 0 Apr 5 17:52 freezer
dr-xr-xr-x 3 root root 0 Apr 5 17:52 hugetlb
dr-xr-xr-x 5 root root 0 Apr 5 17:52 memory
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_cls -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 net_cls,net_prio
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_prio -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 perf_event
dr-xr-xr-x 5 root root 0 Apr 5 17:52 pids
dr-xr-xr-x 2 root root 0 Apr 5 17:52 rdma
dr-xr-xr-x 6 root root 0 Apr 5 17:52 systemd
dr-xr-xr-x 5 root root 0 Apr 5 17:52 unified
linux-kernel cgroups
Does each directory under /sys/fs/cgroup/
represent a cgroup hierarchy, or a controller? (I assume it represents a cgroup hierarchy in the following, because multiple controllers can be mounted to the same cgroup hierarchy, while a controller can't be mounted to multiple cgroup hierarchies.)
Do the directories and symlinks directly under
/sys/fs/cgroup/
represent controllers?Do the directories directly under
/sys/fs/cgroup/
represent
cgroup hierarchies?Are
cpu,cpuacct
,cpu
, andcpuacct
considered different
controllers but the same cgroup hierarchy?Are
net_cls,net_prio
,net_cls
, andnet_prio
considered
different controllers but the same cgroup hierarchy?Must a cgroup be in exactly one cgroup hierarchy (i.e. one directory
under/sys/fs/cgroup/
, if I am correct), no more no less?All the directories under
/sys/fs/cgroup/
have a subdirectory
nameddocker
. Isdocker
a cgroup, and does it belong to all
those cgroup hierarchies represented by the directories under/sys/fs/cgroup/
?
Thanks.
$ ls -l /sys/fs/cgroup/
total 0
dr-xr-xr-x 5 root root 0 Apr 5 17:52 blkio
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpu -> cpu,cpuacct
lrwxrwxrwx 1 root root 11 Apr 5 17:52 cpuacct -> cpu,cpuacct
dr-xr-xr-x 5 root root 0 Apr 5 17:52 cpu,cpuacct
dr-xr-xr-x 3 root root 0 Apr 5 17:52 cpuset
dr-xr-xr-x 5 root root 0 Apr 5 17:52 devices
dr-xr-xr-x 3 root root 0 Apr 5 17:52 freezer
dr-xr-xr-x 3 root root 0 Apr 5 17:52 hugetlb
dr-xr-xr-x 5 root root 0 Apr 5 17:52 memory
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_cls -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 net_cls,net_prio
lrwxrwxrwx 1 root root 16 Apr 5 17:52 net_prio -> net_cls,net_prio
dr-xr-xr-x 3 root root 0 Apr 5 17:52 perf_event
dr-xr-xr-x 5 root root 0 Apr 5 17:52 pids
dr-xr-xr-x 2 root root 0 Apr 5 17:52 rdma
dr-xr-xr-x 6 root root 0 Apr 5 17:52 systemd
dr-xr-xr-x 5 root root 0 Apr 5 17:52 unified
linux-kernel cgroups
linux-kernel cgroups
edited Apr 7 at 16:29
Tim
asked Apr 7 at 15:57
TimTim
28.5k79269491
28.5k79269491
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by usingsystemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions
– Tim
Apr 7 at 21:05
add a comment |
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by usingsystemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions
– Tim
Apr 7 at 21:05
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by using
systemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions– Tim
Apr 7 at 21:05
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by using
systemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions– Tim
Apr 7 at 21:05
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511066%2fdoes-each-directory-under-sys-fs-cgroup-represent-a-cgroup-hierarchy-or-a-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511066%2fdoes-each-directory-under-sys-fs-cgroup-represent-a-cgroup-hierarchy-or-a-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
Apr 7 at 16:12
I have the questions exactly while reading the manpage.
– Tim
Apr 7 at 16:24
@StephenKitt I am using these concepts to better understand Docker. For example, I am checking how Docker runs containers, by using
systemd-cgls
, by following a SO post. I appreciate if you could shed some insights on my questions– Tim
Apr 7 at 21:05