Kernel Newbies archive mirror
 help / color / mirror / Atom feed
From: Nicky Chorley <ndchorley@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Misunderstanding documentation on enabling cgroup controllers
Date: Fri, 19 Aug 2022 09:24:53 +0100	[thread overview]
Message-ID: <CAG-xSoaRPRUf1m79hLrUZJCzWU+-hO=-FucVJxYeLgF0Hgytkg@mail.gmail.com> (raw)

Hi folks,

The documentation for enabling and disabling cgroup controllers at
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/cgroup-v2.rst#n403
says that no controllers are enabled by default and to enable them,
one needs to write into cgroup.subtree_control.

I thought this meant that if I didn't enable a controller, I couldn't
control those resources. However, I wrote a program to limit the
number of processes in a cgroup and it works as expected - if I try to
create more processes, I'm unable to. I didn't write "+pids" into
cgroup.subtree_control - that file remains empty.

Am I misunderstanding the documentation, then?

Thanks.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2022-08-19  8:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19  8:24 Nicky Chorley [this message]
2022-08-21 18:14 ` Misunderstanding documentation on enabling cgroup controllers Valentin Vidić

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG-xSoaRPRUf1m79hLrUZJCzWU+-hO=-FucVJxYeLgF0Hgytkg@mail.gmail.com' \
    --to=ndchorley@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).