X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fopensim%2Fopensim_utils.sh;h=695c09cf6afddb7f25ad091ba9430b582f6d118f;hb=0477a7230d4a82fdb89a647a172b79b81e096026;hp=9405ba6fca8f3d24b5bf25284678413da002170a;hpb=24f722f9af5d3e01beb9cdb0664c47b67c353b38;p=feisty_meow.git diff --git a/scripts/opensim/opensim_utils.sh b/scripts/opensim/opensim_utils.sh index 9405ba6f..695c09cf 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=408 +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 @@ -38,9 +38,13 @@ function launch_screen() 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 +#no, makes it ugly: -console=basic + echo "$(date_stringer ' '): $screen_name started." - sleep $SNOOZE_TIME + # only sleep if we are not at the last process that gets started. + if [ "$app_name" != "OpenSim.exe" ]; then + sleep $SNOOZE_TIME + fi } # finds the opensim process specified or returns a blank string in the