Open chmike opened 2 years ago
I would say no simply because I haven't tested that yet. I haven't looked at the specification for V2 either so I don't know the differences, but it might be worth doing in case it solves some of the problems I've had with coexisting with systemd.
Hello, thank you for answering. I tested partrt with cgroup v2 and it didn't work.
I tried to create cpusets with cgroup v2 manually, inspired by your code, and I met the problem that most process (~60%) won't move to the nrt cpuset. Do you see the same thing with cgroup v1 ?
Could it help to run your program (or a cgroup v2 compliant) in rc.local or earlier to minimize the number of threads/process that won't move ? Or will there always be threads/processes on every core ? I tried it, without much success.
Another problem I have is that I want to isolate a thread of a 3 thread process on the rt cpuset.
I'm currently not using this script myself, so I have limited time for it. What really would be needed is a test framework where you run (in containers?) a cgroup v1 system and a cgroup v2 system and makes sure it works in both as intended.
This is substantial amount of work, both to write the test frameworks and also to figure out what changes are needed to make it work for cgroup v2. I do not have that time.
But if you have a PR to provide, I can look at it. In that case, it would be preferable to split it up in stages, like:
The latest version of the 64bit rasberry PI OS (raspbian OS) based on Debian bullseye doesn’t seam to support isolcpus anymore. I thus consider using your tool to isolate a core. The command
mount | grep cgroup
tells me that raspbian OS uses cgroup v2.Is your rt-tools compatible with cgroup v2 ?