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,253
  • 2
  • 12
  • 25
vikasreddy
  • 329
  • 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

2 Answers2

1

You HAVE to reboot as there is no other way, since the parent is init.

If the zombie process is created every time, all you can do is, you can log the processes and find out the program responsible for this.

anantdark
  • 355
  • 2
  • 12
0

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

sudo fuser -v /dev/nvidia*sudo fuser -v /dev/nvidia*

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

This will kill process with specified ID.

Chirag
  • 11
  • 1