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;








-3















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.)




  1. 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, and cpuacct considered different
    controllers but the same cgroup hierarchy?



    Are net_cls,net_prio, net_cls, and net_prio considered
    different controllers but the same cgroup hierarchy?




  2. 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
    named docker. Is docker 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









share|improve this question
























  • 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


















-3















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.)




  1. 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, and cpuacct considered different
    controllers but the same cgroup hierarchy?



    Are net_cls,net_prio, net_cls, and net_prio considered
    different controllers but the same cgroup hierarchy?




  2. 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
    named docker. Is docker 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









share|improve this question
























  • 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














-3












-3








-3








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.)




  1. 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, and cpuacct considered different
    controllers but the same cgroup hierarchy?



    Are net_cls,net_prio, net_cls, and net_prio considered
    different controllers but the same cgroup hierarchy?




  2. 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
    named docker. Is docker 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









share|improve this question
















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.)




  1. 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, and cpuacct considered different
    controllers but the same cgroup hierarchy?



    Are net_cls,net_prio, net_cls, and net_prio considered
    different controllers but the same cgroup hierarchy?




  2. 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
    named docker. Is docker 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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

















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











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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.