C'è un modo per determinare la velocità della connessione PCI Express a una scheda specifica? Ho tre schede collegate:
due Nvidia GTX 480 (una x16 e una x8)
una Nvidia GTX 460 in esecuzione x8
C'è un modo, tramite una chiamata di funzione in C o un'opzione per lspci
che posso determinare la velocità del bus delle schede grafiche? Quando utilizzo solo una delle schede per il mio programma CUDA, vorrei utilizzare quella che è in esecuzione su x16.
Grazie!
Nota:lspci -vvv
esce
Per le due GTX 480. Non vedo differenze relative alla velocità del bus.
03:00.0 VGA compatible controller: nVidia Corporation Device 06c0 (rev a3)
Subsystem: eVga.com. Corp. Device 1480
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 0: Memory at d4000000 (32-bit, non-prefetchable) [size=32M]
Region 1: Memory at b0000000 (64-bit, prefetchable) [size=128M]
Region 3: Memory at bc000000 (64-bit, prefetchable) [size=64M]
Region 5: I/O ports at df00 [disabled] [size=128]
[virtual] Expansion ROM at b8000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidia, nvidiafb, nouveau
03:00.1 Audio device: nVidia Corporation Device 0be5 (rev a1)
Subsystem: eVga.com. Corp. Device 1480
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin B routed to IRQ 5
Region 0: [virtual] Memory at d7ffc000 (32-bit, non-prefetchable) [disabled] [size=16K]
Capabilities: <access denied>
04:00.0 VGA compatible controller: nVidia Corporation Device 06c0 (rev a3)
Subsystem: eVga.com. Corp. Device 1480
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 0: Memory at dc000000 (32-bit, non-prefetchable) [size=32M]
Region 1: Memory at c0000000 (64-bit, prefetchable) [size=128M]
Region 3: Memory at cc000000 (64-bit, prefetchable) [size=64M]
Region 5: I/O ports at cf00 [size=128]
[virtual] Expansion ROM at c8000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidia, nvidiafb, nouveau
04:00.1 Audio device: nVidia Corporation Device 0be5 (rev a1)
Subsystem: eVga.com. Corp. Device 1480
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 5
Region 0: Memory at dfffc000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
E le uniche differenze che vedo riguardano specificamente la mappatura della memoria:
myComputer:~> diff card1 card2
3c3
< Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
---
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
7,11c7,11
< Region 0: Memory at d4000000 (32-bit, non-prefetchable) [size=32M]
< Region 1: Memory at b0000000 (64-bit, prefetchable) [size=128M]
< Region 3: Memory at bc000000 (64-bit, prefetchable) [size=64M]
< Region 5: I/O ports at df00 [disabled] [size=128]
< [virtual] Expansion ROM at b8000000 [disabled] [size=512K]
---
> Region 0: Memory at dc000000 (32-bit, non-prefetchable) [size=32M]
> Region 1: Memory at c0000000 (64-bit, prefetchable) [size=128M]
> Region 3: Memory at cc000000 (64-bit, prefetchable) [size=64M]
> Region 5: I/O ports at cf00 [size=128]
> [virtual] Expansion ROM at c8000000 [disabled] [size=512K]
18c18
< Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
---
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
19a20
> Latency: 0, Cache Line Size: 64 bytes
21c22
< Region 0: [virtual] Memory at d7ffc000 (32-bit, non-prefetchable) [disabled] [size=16K]
---
> Region 0: Memory at dfffc000 (32-bit, non-prefetchable) [size=16K]
Risposta accettata:
Questa è una domanda molto vecchia, ma il modo per farlo correttamente è eseguire
sudo lspci -vv
Per ogni dispositivo pci-e, elenca LnkSta, che indica la velocità come _ GT/s, Larghezza x1. Elenca anche LnkCap, la capacità del collegamento.
Correlati:come eliminare i file in modo sicuro in Ubuntu?2.5 GT/s =PCI-e gen 1, 5 GT/s =PCI-e gen 2, 8 GT/s =PCI-e gen 3 e la larghezza è il numero di corsie.