Add memory limits to ollama
This commit is contained in:
@@ -8,6 +8,8 @@ Environment="LD_LIBRARY_PATH=/var/home/salt/Projects/ollama/rocm/lib/ollama/"
|
|||||||
ExecStart=/home/salt/Projects/ollama/ollama serve
|
ExecStart=/home/salt/Projects/ollama/ollama serve
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
MemoryHigh=3G
|
||||||
|
MemoryMax=4G
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
Reference in New Issue
Block a user