ioi/isolate

Cannot set memory.limit_in_bytes to 102404096

mraron opened this issue · 4 comments

After I initialize a cgroups isolate box if I execute the following command:

$ isolate --cg --cg-timing -b 500  --mem=1000000 --cg-mem=100003 --run -- ./a.out <<< "2 5"

It executes correctly, but if I set the --cg-mem parameter any higher it wont, printing the following error:

Cannot set /sys/fs/cgroup/memory/box-500/memory.limit_in_bytes to 102404096
: Invalid argument

I (not so) recently upgraded from ubuntu 20.10 to 21.04 (so 5.11 kernel) I haven't really used isolate since so I'm assuming the upgrade caused this issue, because commands like this ran fine in the old version. I also tested it right now on a server with 5.4 kernel and it didn't complain either. Has anyone experienced something like this?

It definitely seems like it has to do something with the kernel because when I boot with a 4.13 kernel it works fine.

I also ran into the same issue, I have opened a PR to fix it.
Here it is: #109
You can find more details in the PR description

Hopefully solved, see the PR.

Yes it's solved, closing the issue.