Closed vikasdeepjangra closed 10 months ago
gcc
is trying to create a new process, which hits the maximum number of processes allowed inside the sandbox. This limit defaults to 1 and while it can be increased, it's not recommended to do so without switching to cgroup mode. See the man page, please.
when I do
isloate --cg --init
To initial cgroup I get the following error:
Failed to create control group /sys/fs/cgroup/memory/box-0/: No such file or directory
I found the fix my cgroup memory controller was not mounted. I used to below command to mount it.
mount -t cgroup -o memory none /sys/fs/cgroup/memory
PS: Make sure to restart your computer
I'm getting the below error when trying to compile a C program
The command I'm using to compile is:
isolate -b 0 -E PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --run -- /usr/bin/gcc main.c -o main