maybe not the last word on ulimit, but some more information

This commit is contained in:
Martin Diehl 2014-02-14 20:08:23 +00:00
parent 12c43b3dab
commit d57ce95409
1 changed files with 6 additions and 4 deletions

View File

@ -32,10 +32,12 @@ if [ ! -z "$PS1" ]; then
echo
fi
ulimit -s unlimited 2>/dev/null
ulimit -c 0 2>/dev/null
ulimit -v unlimited 2>/dev/null
ulimit -m unlimited 2>/dev/null
# http://superuser.com/questions/220059/what-parameters-has-ulimit
ulimit -s unlimited 2>/dev/null # maximum stack size (kB)
ulimit -h unlimited 2>/dev/null # maximum heap size (kB)
ulimit -c 0 2>/dev/null # core file size (512-byte blocks)
ulimit -v unlimited 2>/dev/null # maximum virtual memory size
ulimit -m unlimited 2>/dev/null # maximum physical memory size
export DAMASK_NUM_THREADS
export PYTHONPATH=$DAMASK_ROOT/lib:$PYTHONPATH