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?

Nmk
  • 1,281
  • 2
  • 14
  • 25
vikasreddy
  • 339
  • 3
  • 7
  • You should find its parent and kill it. http://stackoverflow.com/questions/16944886/how-to-kill-zombie-process has a good explanation. – drpng Nov 08 '16 at 17:53
  • The parent is init, so I think there is no way of killing it without rebooting. – vikasreddy Nov 10 '16 at 18:24
  • You could try to lower the initlevel to see if it does anything, but at this point, yeah, perhaps rebooting is the way. – drpng Nov 10 '16 at 18:35

1 Answers1

4

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.

Markus
  • 1,635
  • 15
  • 17
Chirag
  • 51
  • 3