error in linux in parametr --dev
me kill process 18757 (kill -9 18757 ) - it is DEVICE=2
after check nvidia-smi:
why GPU 0 is free?? and GPU 2 is working ?
Code:
nvidia-smi
Wed May 23 14:05:25 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.26 Driver Version: 396.26 |
|-------------------------------+----------------------+----------------------+
| 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 106... Off | 00000000:01:00.0 Off | N/A |
| 70% 58C P2 96W / 96W | 496MiB / 3018MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 106... Off | 00000000:02:00.0 Off | N/A |
| 70% 57C P2 94W / 96W | 502MiB / 6078MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 106... Off | 00000000:04:00.0 Off | N/A |
| 70% 32C P2 98W / 96W | 496MiB / 3019MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 3 GeForce GTX 106... Off | 00000000:0A:00.0 Off | N/A |
| 70% 59C P2 96W / 96W | 502MiB / 6078MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 935 G /usr/lib/xorg/Xorg 5MiB |
| 0 18757 C /opt/mining/calcprofit/miner/zm/zm 479MiB |
| 1 935 G /usr/lib/xorg/Xorg 5MiB |
| 1 18735 C /opt/mining/calcprofit/miner/zm/zm 485MiB |
| 2 935 G /usr/lib/xorg/Xorg 5MiB |
| 2 18746 C /opt/mining/calcprofit/miner/zm/zm 479MiB |
| 3 935 G /usr/lib/xorg/Xorg 5MiB |
| 3 18724 C /opt/mining/calcprofit/miner/zm/zm 485MiB |
+-----------------------------------------------------------------------------+
ps aux | grep zm
root 18724 3.4 1.5 39197088 122900 pts/3 Sl 14:05 0:01 /opt/mining/calcprofit/miner/zm/zm --dev 1 --server equihash.eu.nicehash.com --port 3357
root 18735 3.6 1.5 39197088 122796 pts/3 Sl 14:05 0:01 /opt/mining/calcprofit/miner/zm/zm --dev 0 --server equihash.eu.nicehash.com --port 3357
root 18746 3.2 1.5 39197088 122880 pts/3 Sl 14:05 0:01 /opt/mining/calcprofit/miner/zm/zm --dev 3 --server equihash.eu.nicehash.com --port 3357
root 18757 3.0 1.5 39197088 123084 pts/3 Sl 14:05 0:01 /opt/mining/calcprofit/miner/zm/zm --dev 2 --server equihash.eu.nicehash.com --port 3357
me kill process 18757 (kill -9 18757 ) - it is DEVICE=2
after check nvidia-smi:
Code:
nvidia-smi
Wed May 23 14:08:34 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.26 Driver Version: 396.26 |
|-------------------------------+----------------------+----------------------+
| 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 106... Off | 00000000:01:00.0 Off | N/A |
| 70% 31C P8 8W / 96W | 17MiB / 3018MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 106... Off | 00000000:02:00.0 Off | N/A |
| 70% 57C P2 96W / 96W | 502MiB / 6078MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 106... Off | 00000000:04:00.0 Off | N/A |
| 70% 46C P2 96W / 96W | 496MiB / 3019MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 3 GeForce GTX 106... Off | 00000000:0A:00.0 Off | N/A |
| 70% 61C P2 97W / 96W | 502MiB / 6078MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 935 G /usr/lib/xorg/Xorg 5MiB |
| 1 935 G /usr/lib/xorg/Xorg 5MiB |
| 1 18735 C /opt/mining/calcprofit/miner/zm/zm 485MiB |
| 2 935 G /usr/lib/xorg/Xorg 5MiB |
| 2 18746 C /opt/mining/calcprofit/miner/zm/zm 479MiB |
| 3 935 G /usr/lib/xorg/Xorg 5MiB |
| 3 18724 C /opt/mining/calcprofit/miner/zm/zm 485MiB |
+-----------------------------------------------------------------------------+
root 18724 3.0 1.5 39197088 122900 pts/3 Sl 14:05 0:03 /opt/mining/calcprofit/miner/zm/zm --dev 1 --server equihash.eu.nicehash.com --port 3357
root 18735 3.2 1.5 39197088 122796 pts/3 Sl 14:05 0:04 /opt/mining/calcprofit/miner/zm/zm --dev 0 --server equihash.eu.nicehash.com --port 3357
root 18746 3.0 1.5 39197088 122880 pts/3 Sl 14:05 0:03 /opt/mining/calcprofit/miner/zm/zm --dev 3 --server equihash.eu.nicehash.com --port 3357
why GPU 0 is free?? and GPU 2 is working ?
Killing process 18757 ends up killing the zm process running on GPU 0 (being the process using it as reported by nivida-smi).
--dev option is using CUDA device ids that are not the same as the ones reported by nvidia-smi.
Hence, in your case:
* GPU 0 is CUDA dev 2.
* GPU 1 is CUDA dev 0.
* GPU 2 is CUDA dev 3.
* GPU 3 is CUDA dev 1.