Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* 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, back to index

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

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox