How to clear GPU memory occupied by zombie process if it's parent is init?
Asked Answered
F

1

14

nvidia-smi screenshot

The process with PID 14420 is a zombie process and its parent id is 1(init). I want to clear 4436MiB memory occupied by this zombie process without rebooting.

How should I proceed?

Faina answered 7/11, 2016 at 17:1 Comment(3)
You should find its parent and kill it. https://mcmap.net/q/25586/-how-to-kill-zombie-process has a good explanation.Evangel
The parent is init, so I think there is no way of killing it without rebooting.Faina
You could try to lower the initlevel to see if it does anything, but at this point, yeah, perhaps rebooting is the way.Evangel
F
5

Use this command to list all the processes on the GPU (on Linux).

sudo fuser -v /dev/nvidia*

and find PID from the listed processes and simply use kill <PID> .

This will kill process with specified ID.

Fraya answered 13/4, 2022 at 15:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.