ollama icon indicating copy to clipboard operation
ollama copied to clipboard

High CPU and GPU usage, even when noone is interacting with ollama

Open ThatCoffeeGuy opened this issue 2 years ago • 2 comments

Hey.

I have used ollama a few hours ago... only to notice now, that the CPU usage is quite high and the GPU usage is around 30% while the model and web are doing absolutely nothing.

lsof is showing 1.8k open files and the processes keep renewing their PIDs, it's impossible to strace them. What's going on?

image

ThatCoffeeGuy avatar Jan 21 '24 22:01 ThatCoffeeGuy

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

sadmin@aiml:~$ 
uname -r
5.15.0-89-generic

ollama serve and ollama webui. But the process spinning the CPU and GPU are ollama it seems. I don't know if it's triggered by the webui. which is... ghcr.io/ollama-webui/ollama-webui:main

ThatCoffeeGuy avatar Jan 22 '24 17:01 ThatCoffeeGuy

Can you share the logs from the server?

If the logs don't contain anything, consider killing the process which should generate a stack dump which may help us understand what it's doing.

dhiltgen avatar Jan 26 '24 20:01 dhiltgen

We've had a number of different performance fixes to the ollama server since January. I'm going to go ahead and close this, but please feel free to reopen it if this is still a problem.

pdevine avatar Mar 11 '24 17:03 pdevine

Im having a similar issu right now...

coc0nut avatar Apr 03 '24 03:04 coc0nut

same here, any solution?

koldogut avatar Jun 21 '24 12:06 koldogut