* newbie-level question about cgroups
@ 2019-07-28 19:39 Robert P. J. Day
2019-07-29 2:37 ` Valdis Klētnieks
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2019-07-28 19:39 UTC (permalink / raw)
To: Kernel Newbies
no point bugging the actual cgroup people about this since it should
be simple ... if i need *only* cgroup v2, can i dispense entirely with
everything under /sys/fs/cgroup/ other than /sys/fs/cgroup/unified?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: newbie-level question about cgroups
2019-07-28 19:39 newbie-level question about cgroups Robert P. J. Day
@ 2019-07-29 2:37 ` Valdis Klētnieks
2019-07-29 15:00 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Valdis Klētnieks @ 2019-07-29 2:37 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Kernel Newbies
[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]
On Sun, 28 Jul 2019 15:39:26 -0400, "Robert P. J. Day" said:
> no point bugging the actual cgroup people about this since it should
> be simple ... if i need *only* cgroup v2, can i dispense entirely with
> everything under /sys/fs/cgroup/ other than /sys/fs/cgroup/unified?
There's a whole mess of CONFIG_CGROUP_* variables, feel free to turn off
those that your system doesn't actually need.
Make sure that you keep a backup kernel in case you turn off something you
shouldn't have. In particular, systemd seems to want all sorts of cgroups for
no reason other than "because they're there".
[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: newbie-level question about cgroups
2019-07-29 2:37 ` Valdis Klētnieks
@ 2019-07-29 15:00 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2019-07-29 15:00 UTC (permalink / raw)
To: Valdis Klētnieks; +Cc: Kernel Newbies
[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]
On Sun, 28 Jul 2019, Valdis Klētnieks wrote:
> On Sun, 28 Jul 2019 15:39:26 -0400, "Robert P. J. Day" said:
>
> > no point bugging the actual cgroup people about this since it
> > should be simple ... if i need *only* cgroup v2, can i dispense
> > entirely with everything under /sys/fs/cgroup/ other than
> > /sys/fs/cgroup/unified?
>
> There's a whole mess of CONFIG_CGROUP_* variables, feel free to turn
> off those that your system doesn't actually need.
>
> Make sure that you keep a backup kernel in case you turn off
> something you shouldn't have. In particular, systemd seems to want
> all sorts of cgroups for no reason other than "because they're
> there".
actually, i just ran across the "cgroup_no_v1=" boot-time parameter:
[KNL] Disable cgroup controllers and named hierarchies in v1
Format: { { controller | "all" | "named" }
[,{ controller | "all" | "named" }...] }
Like cgroup_disable, but only applies to cgroup v1;
the blacklisted controllers remain available in cgroup2.
"all" blacklists all controllers and "named" disables
named mounts. Specifying both "all" and "named" disables
all v1 hierarchies.
so i guess it's not only possible, it's easy. :-)
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-29 15:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-28 19:39 newbie-level question about cgroups Robert P. J. Day
2019-07-29 2:37 ` Valdis Klētnieks
2019-07-29 15:00 ` Robert P. J. Day
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 NNTP newsgroup(s).