Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on cgroup v2 downgrading #1954

Closed
Dup4 opened this issue Mar 6, 2023 · 1 comment
Closed

Add documentation on cgroup v2 downgrading #1954

Dup4 opened this issue Mar 6, 2023 · 1 comment

Comments

@Dup4
Copy link
Contributor

Dup4 commented Mar 6, 2023

In some newer Linux distributions (e.g. Ubuntu 22.04), cgroup v2 is turned on by default, but judgehost does not support cgroup v2 (#1072).

So do we need to add something to the documentation that tells users how to detect if cgroup v2 is on and how to turn it off?

We can check if we have cgroup v2 on by using this method: https://unix.stackexchange.com/a/668244/558695

systemd.unified_cgroup_hierarchy=0

By adding this parameter, we can turn on cgroup v1.

So, would it be appropriate to add the above to this page?

https://github.com/DOMjudge/domjudge/blob/main/doc/manual/install-judgehost.rst

@thijskh
Copy link
Member

thijskh commented Mar 6, 2023

Documentation kind of exists, this is the output if you do not have v2 disabled:

Error: cgroup support missing memory features in running kernel. Unable to continue.

    To fix this, please make the following changes:
    1. In /etc/default/grub, add 'cgroup_enable=memory swapaccount=1' to GRUB_CMDLINE_LINUX_DEFAULT.
       On modern distros (e.g. Debian bullseye and Ubuntu Jammy Jellyfish) which have cgroup v2 enabled by default,
       you need to add 'systemd.unified_cgroup_hierarchy=0' as well.
    2. Run update-grub
    3. Reboot

@Dup4 Dup4 closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants