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/burst-95.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=760%
MemoryHigh=12G
MemoryMax=14G
CONF
sudo systemctl daemon-reload
sudo systemctl restart ollama
echo "Burst mode enabled for Ollama."
echo "CPUQuota=760%, MemoryHigh=12G, MemoryMax=14G"