compute/hardware.md
... ...
@@ -0,0 +1,14 @@
1
+<!-- TITLE: Hardware -->
2
+<!-- SUBTITLE: Tin. Iron. Computrons. -->
3
+
4
+#### Find physical pci slots
5
+```
6
+# readlink /sys/class/dvb/dvb*.frontend0
7
+../../devices/pci0000:00/0000:00:05.0/0000:13:00.0/dvb/dvb0.frontend0
8
+../../devices/pci0000:00/0000:00:05.0/0000:13:00.0/dvb/dvb1.frontend0
9
+../../devices/pci0000:00/0000:00:07.0/0000:19:00.0/0000:1a:02.0/0000:1b:00.0/dvb/dvb2.frontend0
10
+# lspci -vmm | awk 'BEGIN {RS="\n\n"; FS="\n"} {if ($0 ~ /Slot:\t*13:00.0/) print }' | grep '^PhySlot'
11
+PhySlot: 4
12
+# lspci -vmm | awk 'BEGIN {RS="\n\n"; FS="\n"} {if ($0 ~ /Slot:\t*1b:00.0/) print }' | grep '^PhySlot'
13
+PhySlot: 2
14
+```
... ...
\ No newline at end of file