diff --git a/files/scripts/llm_swap_stopper.sh b/files/scripts/llm_swap_stopper.sh index 9c64ac9..dd302d8 100755 --- a/files/scripts/llm_swap_stopper.sh +++ b/files/scripts/llm_swap_stopper.sh @@ -52,6 +52,8 @@ while [[ true ]]; do if [ $used_ram_pct -gt $ram_pct_restart ]; then echo "WARNING: RAM is over ${ram_pct_restart}% used. Restarting LLMs." restart_llms + echo -e "Done, setting last RAM to 100 and continuing.\n" + last_ram_pct=100 continue fi @@ -70,6 +72,8 @@ while [[ true ]]; do if [ $used_swap_pct -gt $last_swap_pct ]; then echo "WARNING: Swap is growing. Restarting LLMs." restart_llms + echo -e "Done, setting last swap to 100 and continuing.\n" + last_swap_pct=100 continue fi