• [gentoo-user] Cgroup confusion

    From Peter Humphrey@21:1/5 to All on Tue Apr 25 11:30:01 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?iso-8859-1?Q?Ho=EBl_B=E9zier?=@21:1/5 to All on Tue Apr 25 13:08:18 2023
    Hi,

    # 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”.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEElZjiR4iQkYjVEGdt6jPCPrF3Nk0FAmRHtKIACgkQ6jPCPrF3 Nk1XbRAAnGa38/OCYIEr7OphwjEMPoymSmZKZ8Nw8su7i8veYQgAeFGAYySEt6uH u0CBDncykH4wpvuMDKGcqVWwRuenv977i8D3zgj2rDnalqc9upqywWPs9WHrlI8J x+Oy4BguqhzdgclJOg/RdVfGBl/UVqsIMER8dMrp10RGC3p5n9+MIKJBIBj43o/0 2nhsdfUZZvpBMNWXtPHAv6CYPAEC8CA1UIVpGqKLUv8GAw6X07MsGuKTS4wyFxlm QOvqwU16k8vzzoxbfe426pZGTCzJXNYZ+qieP3iEHxe15Av89BgmqweFsCPmcbQS 7e7Yi84W3h97A92tkk2uRrevkyb+G3hVu2L586vN6auMYI7K7FS9HXuEVeqrpKVR Z9k/Anse/0ZaKwQgJP9AZtgvzS72xcjq1bBgvPdNiEh1Mo+zxCKFPeIyTV9rDGqz EMAdJHV30JAylYceCC+/KQu7YdR860cz3cEzKq/CtWQClslJftQENcHTnDTMfW0E jJVWC2a9g2oZIJ1be6/H3VLoJnEu1jw9VISAH4VsDQPW7y5fFsXsMIGo1T7ZpHt5 w3Lj4ZVbI6NWOJW62HqC8+HLSfR2hjjptNMxRYewhTrbI4d15ffLqExYDCDdVLyN MCZmxSOiqShP8Tw/FmHSaM2axRAIZe1Cwh4ClhkmMl+uTOMK5Qc=
    =eH3s
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Wed Apr 26 12:00:01 2023
    On Tuesday, 25 April 2023 12:08:18 BST Hoël Bézier wrote:
    Hi,

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)