The right way to increase ulimit
verdimrc opened this issue · 2 comments
verdimrc commented
To match the --ulimit stack=xxx
from docker run (below), I found that I need to modify /etc/security/limits.conf
. Is this the right way?
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm nvcr.io/ea-bignlp/nemofw-training:23.07-py3 /bin/bash
Is it possible to set the limit only when I invoke enroot start ...
?
3XX0 commented
You can set the ulimit the usual way or inside an entrypoint if you want
ulimit -s 4096 ; enroot start ubuntu
enroot start --rc <(echo ulimit -s 4096\; bash) ubuntu
verdimrc commented
Thank you.