Commit 484c9c1c authored by Mike Hibler's avatar Mike Hibler
Browse files

be a little more conservative about how much memory frisbee can use

parent a8d81694
...@@ -62,12 +62,13 @@ fi ...@@ -62,12 +62,13 @@ fi
# #
# set memory limits: # set memory limits:
# allow 8MB for non-frisbee stuff # allow 16MB for non-frisbee stuff
# split remaining memory between network/disk buffering in frisbee # split remaining memory (at least 2MB) between network/disk buffering
# in frisbee
# #
HOSTMEM=`dmesg | grep 'avail memory' | sed -e 's/.* (\([0-9]*\)K bytes.*/\1/'` HOSTMEM=`dmesg | grep 'avail memory' | sed -e 's/.* (\([0-9]*\)K bytes.*/\1/'`
if [ $HOSTMEM -ge 10240 ]; then if [ $HOSTMEM -ge 18432 ]; then
HOSTMEM=`expr $HOSTMEM - 8192` HOSTMEM=`expr $HOSTMEM - 16384`
ulimit -v $HOSTMEM ulimit -v $HOSTMEM
HOSTMEM=`expr $HOSTMEM / 1024` HOSTMEM=`expr $HOSTMEM / 1024`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment