Discussion:
[gentoo-user] Cgroup confusion
(too old to reply)
Peter Humphrey
2023-04-25 09:30:01 UTC
Permalink
Hello list,

BOINC is behaving strangely, and following a clue it gives me I look in /etc/
rc.conf and find this:

# This switch controls whether or not cgroups version 1 controllers are
# individually mounted under
# /sys/fs/cgroup in hybrid or legacy mode.
#rc_controller_cgroups="YES"

So, whether or not A or B. How do I translate that into English? Surely it
must be either 'whether or not" or "whether A or B", no? And which of those
does YES denote? Or perhaps "in hybrid or legacy mode" should just be omitted.
--
Regards,
Confused of Tideswell.
Hoël Bézier
2023-04-25 11:10:02 UTC
Permalink
Hi,
Post by Peter Humphrey
# This switch controls whether or not cgroups version 1 controllers are
# individually mounted under
# /sys/fs/cgroup in hybrid or legacy mode.
#rc_controller_cgroups="YES"
So, whether or not A or B. How do I translate that into English?
Gentoo has three cgroups mode: legacy, hybrid and unified. cgroups v1 are
created in legacy and hybrid modes, cgroups v2 are created in hybrid and
unified modes.

So the question here is, when cgroups v1 are created, i.e. in hybrid or legacy
mode, do you want, yes or no, controllers to be individually mounted under
/sys/fs/cgroup?

This parameter has no effect when you are in unified mode, because there
are no cgroups v1 in this mode, so it makes sense to specify it applies only
“in hybrid or legacy mode”.
Peter Humphrey
2023-04-26 10:00:01 UTC
Permalink
Post by Hoël Bézier
Hi,
Post by Peter Humphrey
# This switch controls whether or not cgroups version 1 controllers are
# individually mounted under
# /sys/fs/cgroup in hybrid or legacy mode.
#rc_controller_cgroups="YES"
So, whether or not A or B. How do I translate that into English?
Gentoo has three cgroups mode: legacy, hybrid and unified. cgroups v1 are
created in legacy and hybrid modes, cgroups v2 are created in hybrid and
unified modes.
So the question here is, when cgroups v1 are created, i.e. in hybrid or
legacy mode, do you want, yes or no, controllers to be individually mounted
under /sys/fs/cgroup?
This parameter has no effect when you are in unified mode, because there
are no cgroups v1 in this mode, so it makes sense to specify it applies only
“in hybrid or legacy mode”.
It helps to have done something else for 24 hours, and come back to read it
again. I think I understand it now, but it could have been written so much
better.

Actually, I think a bit more structure in the whole file would be a good idea:
where does one section end and the next begin, for instance?
--
Regards,
Peter.
Loading...