Add Ollama burst and normal mode scripts

This commit is contained in:
avi
2026-04-20 13:55:33 -05:00
parent 9dae58af47
commit c5966bced7
2 changed files with 38 additions and 0 deletions

19
scripts/normal-80.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
sudo mkdir -p /etc/systemd/system/ollama.service.d
cat <<'CONF' | sudo tee /etc/systemd/system/ollama.service.d/override.conf >/dev/null
[Service]
CPUAccounting=true
MemoryAccounting=true
CPUQuota=640%
MemoryHigh=11G
MemoryMax=13G
CONF
sudo systemctl daemon-reload
sudo systemctl restart ollama
echo "Normal mode restored for Ollama."
echo "CPUQuota=640%, MemoryHigh=11G, MemoryMax=13G"