[GH-ISSUE #5642] 退出后显存仍在占用 - Video memory is still occupied after exiting #50029

Closed
opened 2026-04-28 13:53:53 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @gfkdliucheng on GitHub (Jul 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5642

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

退出后显存仍在占用

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.2.2

Originally created by @gfkdliucheng on GitHub (Jul 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5642 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? 退出后显存仍在占用 ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.2.2
GiteaMirror added the needs more info label 2026-04-28 13:53:53 -05:00
Author
Owner

@dhiltgen commented on GitHub (Jul 23, 2024):

Please share more information about your scenario. How did you shutdown Ollama? If you signal the ollama serve with a SIGTERM then it will be able to shutdown the child processes and release the GPU memory. If you use kill -9 (SIGKILL) then the ollama_llama_server process will be orphaned and hold GPU resource indefinitely.

<!-- gh-comment-id:2246385387 --> @dhiltgen commented on GitHub (Jul 23, 2024): Please share more information about your scenario. How did you shutdown Ollama? If you signal the `ollama serve` with a SIGTERM then it will be able to shutdown the child processes and release the GPU memory. If you use `kill -9` (SIGKILL) then the ollama_llama_server process will be orphaned and hold GPU resource indefinitely.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50029