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

Cannot set memory.limit_in_bytes to 102404096 #105

Closed
mraron opened this issue Oct 14, 2021 · 4 comments
Closed

Cannot set memory.limit_in_bytes to 102404096 #105

mraron opened this issue Oct 14, 2021 · 4 comments

Comments

@mraron
Copy link

mraron commented Oct 14, 2021

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?

@mraron
Copy link
Author

mraron commented Oct 14, 2021

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

@aswinashok44
Copy link
Contributor

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

@gollux
Copy link
Member

gollux commented Feb 7, 2022

Hopefully solved, see the PR.

@mraron
Copy link
Author

mraron commented Mar 5, 2022

Yes it's solved, closing the issue.

@mraron mraron closed this as completed Mar 5, 2022
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

3 participants