どうすればgpuメモリを可能な限り解放できますか?
現在、400 MB以上のGPU RAMが常に占有されているようです。
どうすればこれらを解放できますか?
Wed Feb 24 21:48:33 2016
+------------------------------------------------------+
| NVIDIA-SMI 352.39 Driver Version: 352.39 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 750 Off | 0000:01:00.0 On | N/A |
| 22% 31C P8 0W / 38W | 438MiB / 2046MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 731 C /usr/bin/python 24MiB |
| 0 1121 G /usr/bin/X 260MiB |
| 0 2058 G compiz 140MiB |
| 0 8408 G /proc/self/exe 3MiB |
+-----------------------------------------------------------------------------+
Sudo fuser -v /dev/nvidia*
でGPUメモリの使用状況を確認します出力は次のようになります。
USER PID ACCESS COMMAND
/dev/nvidia0: root 10 F...m Xorg
user 1025 F...m compiz
user 1070 F...m python
user 2001 F...m python
Sudo kill -9 <PID>
で強制終了しますSudo kill -9 2001