Does each directory under `/sys/fs/cgroup/` represent a cgroup hierarchy, or a controller?Is a cgroup a list...
OA final episode explanation
How can I add custom success page
Is Fable (1996) connected in any way to the Fable franchise from Lionhead Studios?
Can produce flame be used to grapple, or as an unarmed strike, in the right circumstances?
Where to refill my bottle in India?
How to make payment on the internet without leaving a money trail?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)
Crop image to path created in TikZ?
What does 'script /dev/null' do?
Prime joint compound before latex paint?
Symmetry in quantum mechanics
How can I fix this gap between bookcases I made?
What is the command to reset a PC without deleting any files
Copycat chess is back
Are white and non-white police officers equally likely to kill black suspects?
Does it makes sense to buy a new cycle to learn riding?
Does a dangling wire really electrocute me if I'm standing in water?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
What to wear for invited talk in Canada
Why was the "bread communication" in the arena of Catching Fire left out in the movie?
Some basic questions on halt and move in Turing machines
Why does this relative pronoun not take the case of the noun it is referring to?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Does each directory under `/sys/fs/cgroup/` represent a cgroup hierarchy, or a controller?
Is 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, andcpuacctconsidered different
controllers but the same cgroup hierarchy?
Are
net_cls,net_prio,net_cls, andnet_prioconsidered
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. Isdockera 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, andcpuacctconsidered different
controllers but the same cgroup hierarchy?
Are
net_cls,net_prio,net_cls, andnet_prioconsidered
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. Isdockera 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
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
@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
yesterday
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, andcpuacctconsidered different
controllers but the same cgroup hierarchy?
Are
net_cls,net_prio,net_cls, andnet_prioconsidered
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. Isdockera 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, andcpuacctconsidered different
controllers but the same cgroup hierarchy?
Are
net_cls,net_prio,net_cls, andnet_prioconsidered
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. Isdockera 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 yesterday
Tim
asked yesterday
TimTim
28.5k79269491
28.5k79269491
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
@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
yesterday
add a comment |
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
@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
yesterday
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
yesterday
This is all explained in the cgroups v1 documentation...
– Stephen Kitt
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
@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
yesterday
@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
yesterday
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
yesterday
I have the questions exactly while reading the manpage.
– Tim
yesterday
@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
yesterday