Process Nvidia – How to Shift Process from GPU to CPU Usage

gpunvidiaprocess

My nvidia-smi output is as follows

COVID19_002_6LU7_Protease_Top_3/ni_fda130/fda130_fix$ nvidia-smi
Sun Jun  7 15:00:30 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro K620         On   | 00000000:02:00.0  On |                  N/A |
| 63%   73C    P0    19W /  30W |   1253MiB /  1994MiB |     98%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1406      G   /usr/lib/xorg/Xorg                            12MiB |
|    0      2006      G   /usr/lib/xorg/Xorg                           193MiB |
|    0      2186      G   /usr/bin/gnome-shell                         370MiB |
|    0      3007      G   ...AAAAAAAAAAAACAAAAAAAAAA= --shared-files   400MiB |
|    0      9680      G   /opt/teamviewer/tv_bin/TeamViewer             10MiB |
|    0     14270      G   /usr/lib/rstudio/bin/rstudio                  56MiB |
|    0     14961      G   /usr/lib/rstudio/bin/rstudio                  61MiB |
|    0     22725      G   ...passed-by-fd --v8-snapshot-passed-by-fd     4MiB |
|    0     23617      C   gmx                                           74MiB |
+-----------------------------------------------------------------------------+

gmx is molecular dynamics simulation and is my primary process.

I am not aware of some processes especially ...AAAAAAAAAAAACAAAAAAAAAA= --shared-files . What is it? and how to prevent it from running in GPU.

Can I also shift /usr/bin/gnome-shell to CPU usage rather than GPU usage?

I came across one such question. But it is unanswered.

I also found one more thread on this topic. But it is essentially not fully answered.

Best Answer

Your GPU is being used for both display and compute processes; you can see which is which by looking at the “Type” column — “G” means that the process is a graphics process (using the GPU for its display), “C” means that the process is a compute process (using the GPU for computation).

To move a type “G” process of the GPU, you need to stop it from displaying on the GPU, which will involve stopping the process and (if appropriate) starting it on another GPU for display purposes.

As far as the ...AAAAAAAAAAAACAAAAAAAAAA= --shared-files process is concerned, you’ll have to look for it using ps to determine what it is.

Related Question