X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fopensim%2Fopensim_utils.sh;h=d9d9d654784b9732a893c233486cced77a157005;hb=9a20546504cdef8119e9431d521fc0429ac6b4a9;hp=c1ea58db9c4d7f6249f2f70c02015bcd1af36008;hpb=371513ce86874e266cae5534c589927f2c696473;p=feisty_meow.git diff --git a/scripts/opensim/opensim_utils.sh b/scripts/opensim/opensim_utils.sh index c1ea58db..d9d9d654 100644 --- a/scripts/opensim/opensim_utils.sh +++ b/scripts/opensim/opensim_utils.sh @@ -2,10 +2,10 @@ # this is a collection of scripts that assist in managing an opensim server. # it uses the "screen" utility to manage opensimulator instances. -source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" # set up some parameters that we believe (or have been told) are beneficial. -export MONO_THREADS_PER_CPU=808 +export MONO_THREADS_PER_CPU=1208 # we run the processes with a little cpu de-prioritization. we do not want # them taking over completely if there's a runaway mono tornado. @@ -21,7 +21,7 @@ export SNOOZE_TIME=6 # lock the limit in for threads, so we don't have any getting out of control. # also make sure we've provided enough space for each thread. -ulimit -s 262144 +ulimit -s 512144 # use more recent versions of mono for opensim if they're available. if [ -d /opt/mono-2.10/bin ]; then @@ -36,9 +36,11 @@ function launch_screen() screen_name="$1"; shift app_name="$1"; shift echo "$(date_stringer ' '): starting $screen_name now..." - screen -L -S "$screen_name" -d -m nice -n $NICENESS_LEVEL mono "$app_name" -##why? --debug -#-console=basic +#hmmm: version check for if we're using old screen? this -L change was a mistake though for the screen project owners on ubuntu. +#local boguslog=$HOME/screen_junk_$(date_stringer).log +#maybe they unbroke it in 17.10? + screen -L$boguslog -S "$screen_name" -d -m nice -n $NICENESS_LEVEL mono "$app_name" + echo "$(date_stringer ' '): $screen_name started." # only sleep if we are not at the last process that gets started. if [ "$app_name" != "OpenSim.exe" ]; then