I recently updated ollama, and it now installs a systemd service that I was not expecting. Seems like a great option, but it was using up gpu, and I do other things on my machine with a gpu. I tried pkill, kill, and everything, it was still coming back.


# stop it
systemctl stop ollama.service

# disable it if you want
systemctl disable ollama.service

# confirm its status
systemctl status ollama.service

You can confirm this with the following command.


# checking running processes
ps aux | grep ollama
pgrep ollama

# checking gpu processes
gpustat --show-cmd --show-pid