Ubuntu

linux(ubuntu) nvidia 튜닝 ON/OFF

pepega 2021. 10. 21. 23:02
$ nvidia-smi

Thu Jan  7 16:37:34 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      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  GeForce RTX 208...  Off  | 00000000:17:00.0 Off |                  N/A |
|  0%   22C    P2    58W / 300W |    164MiB / 11019MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce RTX 208...  Off  | 00000000:65:00.0 Off |                  N/A |
|  0%   23C    P2    57W / 300W |    164MiB / 11019MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     16442      C   python3                                      153MiB |
|    1     16442      C   python3                                      153MiB |
+-----------------------------------------------------------------------------+

Off로 나오는 경우가 있다.

이를 On으로 바꿔주기 위해서

// 모든 작업은 sudo에서

$ nvidia-smi -pm 1
// Set persistence mode: 0/DISABLED, 1/ENABLED


Enabled persistence mode for GPU 00000000:17:00.0.
Enabled persistence mode for GPU 00000000:65:00.0.
All done.
$ nvidia-smi -acp 0

Applications clocks commands have been set to UNRESTRICTED for GPU 00000000:17:0                                                 0.0
Applications clocks commands have been set to UNRESTRICTED for GPU 00000000:65:0                                                 0.0
All done.
$ nvidia-smi -ac "877,1380"

Setting applications clocks is not supported for GPU 00000000:17:00.0.
Treating as warning and moving on.
Setting applications clocks is not supported for GPU 00000000:65:00.0.
Treating as warning and moving on.
All done.
$ nvidia-smi

Thu Jan  7 16:41:47 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      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  GeForce RTX 208...  On   | 00000000:17:00.0 Off |                  N/A |
|  0%   22C    P2    58W / 300W |    165MiB / 11019MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce RTX 208...  On   | 00000000:65:00.0 Off |                  N/A |
|  0%   23C    P2    57W / 300W |    165MiB / 11019MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     17161      C   python3                                      153MiB |
|    1     17161      C   python3                                      153MiB |
+-----------------------------------------------------------------------------+

On으로 바뀌었다

'Ubuntu' 카테고리의 다른 글

linux 압축, 압축 해체, tar, gz, tar.gz  (0) 2021.10.21
ubuntu 16.04 jupyterlab 설치  (0) 2021.10.21