Add memory limits to ollama

This commit is contained in:
2025-05-15 11:37:39 -05:00
parent e48092d2ae
commit 4f67e2b9f7

@@ -8,6 +8,8 @@ Environment="LD_LIBRARY_PATH=/var/home/salt/Projects/ollama/rocm/lib/ollama/"
ExecStart=/home/salt/Projects/ollama/ollama serve
Restart=always
RestartSec=3
MemoryHigh=3G
MemoryMax=4G
[Install]
WantedBy=default.target