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

Support unified cgroup hierarchy #54

Open
wentasah opened this issue Apr 28, 2021 · 4 comments · May be fixed by #78
Open

Support unified cgroup hierarchy #54

wentasah opened this issue Apr 28, 2021 · 4 comments · May be fixed by #78

Comments

@wentasah
Copy link
Member

wentasah commented Apr 28, 2021

Currently, when demos runs on a system using unified cgroup hierarchy, it fails, because the layout of cgroup filesystems is different than what is expected. Demos should detect this situation (see #27) and configure/create cgroups accordingly. Issue #31 is also related to this problem.

@MatejKafka
Copy link
Collaborator

What's the current state of support for unified cgroup hierarchy? I know my current WSL2 kernel still defaults to hybrid mode, and I'd assume other distros do the same. Can we reasonably support both?

@wentasah
Copy link
Member Author

wentasah commented Apr 28, 2021 via email

@wentasah
Copy link
Member Author

Now, when #55 is closed, we can start developing support for unified cgroup hierarchy. The example below shows how to test it and what currently fails (even the simplest command).

[host:~]# cd demos-sched/test
[host:~/demos-sched/test]# nix-shell -p nixos-shell --command nixos-shell
...
<<< Welcome to NixOS 21.11.git.1e6fe5276cdM (x86_64) - ttyS0 >>>
Log in as "root" with an empty password.
nixos login: root
[root@nixos:~/demos-sched/test]# demos-sched -C '{windows: [], partitions: []}'
>>> 14:55:13.197 [critical] Assertion failed: `!freezer_path.empty()`
>>> 14:55:13.199 [critical]     at ../src/cgroup_setup.cpp:76 (bool cgroup_setup::create_toplevel_cgroups(Cgroup&, Cgroup&, Cgroup&, const string&))
>>> 14:55:13.201 [critical] Unwinding stack and exiting...
>>> 14:55:13.202 [error] Exception: Assertion failed (see above)

@wentasah
Copy link
Member Author

Github actions's ubuntu-latest switch to Ubuntu 22.04, which uses unified cgroup hierarchy by default. Somebody should look at implementing the necessary support :-).

@wentasah wentasah linked a pull request Dec 1, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants