Skip to content

Instantly share code, notes, and snippets.

@ruffsl

ruffsl/README.md Secret

Last active December 8, 2015 19:20
Show Gist options
  • Save ruffsl/fa6c5c29e7f4d1036085 to your computer and use it in GitHub Desktop.
Save ruffsl/fa6c5c29e7f4d1036085 to your computer and use it in GitHub Desktop.
GPU Docker Plugin Debuging

Error

~/git/NVIDIA/nvidia-docker/plugin$ sudo sh -c "./bin/plugin &"
nvidia-docker-plugin | 2015/12/08 11:29:07 Loading NVIDIA management library
nvidia-docker-plugin | 2015/12/08 11:29:07 Loading NVIDIA unified memory module
nvidia-docker-plugin | 2015/12/08 11:29:07 Discovering GPU devices
nvidia-docker-plugin | 2015/12/08 11:29:07 Creating volumes
nvidia-docker-plugin | 2015/12/08 11:29:07 Error: invalid ld.so.cache file

System Info

$ nvidia-smi 
Tue Dec  8 11:36:14 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 346.82     Driver Version: 346.82         |                       
|-------------------------------+----------------------+----------------------+
| 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 TIT...  Off  | 0000:01:00.0     Off |                  N/A |
| 30%   70C    P2    74W / 250W |    197MiB / 12287MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX TIT...  Off  | 0000:02:00.0     Off |                  N/A |
| 26%   65C    P2    74W / 250W |   7054MiB / 12287MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

Tue Dec  8 11:36:39 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 352.63     Driver Version: 352.63         |                       
|-------------------------------+----------------------+----------------------+
| 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 TIT...  Off  | 0000:01:00.0      On |                  N/A |
| 22%   42C    P8    18W / 250W |    411MiB / 12287MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS

$ uname -a
Linux cogrob-gpu 3.19.0-26-generic #28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ strings /etc/ld.so.cache | head -n 2
ld.so-1.7.0
glibc-ld.so.cache1.1

$ hexdump -C -n 256  /etc/ld.so.cache
00000000  6c 64 2e 73 6f 2d 31 2e  37 2e 30 00 8e 09 00 00  |ld.so-1.7.0.....|
00000010  03 03 00 00 b0 e5 00 00  be e5 00 00 03 03 00 00  |................|
00000020  e6 e5 00 00 f2 e5 00 00  03 03 00 00 18 e6 00 00  |................|
00000030  2c e6 00 00 03 03 00 00  5a e6 00 00 6b e6 00 00  |,.......Z...k...|
00000040  03 03 00 00 96 e6 00 00  ad e6 00 00 03 03 00 00  |................|
00000050  de e6 00 00 f2 e6 00 00  03 03 00 00 20 e7 00 00  |............ ...|
00000060  36 e7 00 00 03 03 00 00  66 e7 00 00 79 e7 00 00  |6.......f...y...|
00000070  03 03 00 00 a6 e7 00 00  b6 e7 00 00 03 03 00 00  |................|
00000080  e0 e7 00 00 ed e7 00 00  03 03 00 00 14 e8 00 00  |................|
00000090  21 e8 00 00 03 03 00 00  48 e8 00 00 5c e8 00 00  |!.......H...\...|
000000a0  03 03 00 00 8a e8 00 00  99 e8 00 00 03 03 00 00  |................|
000000b0  b1 e8 00 00 c0 e8 00 00  03 03 00 00 e9 e8 00 00  |................|
000000c0  ff e8 00 00 03 03 00 00  2f e9 00 00 45 e9 00 00  |......../...E...|
000000d0  03 03 00 00 64 e9 00 00  71 e9 00 00 03 03 00 00  |....d...q.......|
000000e0  87 e9 00 00 92 e9 00 00  03 03 00 00 a6 e9 00 00  |................|
000000f0  b0 e9 00 00 03 00 00 00  d0 e9 00 00 da e9 00 00  |................|
00000100

$ hexdump -C /etc/ld.so.cache | grep -A2 glibc
000072b0  f6 06 03 00 0b 07 03 00  67 6c 69 62 63 2d 6c 64  |........glibc-ld|
000072c0  2e 73 6f 2e 63 61 63 68  65 31 2e 31 90 09 00 00  |.so.cache1.1....|
000072d0  86 21 02 00 00 00 00 00  00 00 00 00 00 00 00 00  |.!..............|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment