R&D/OS

Linux PCI 정보 확인 방법

sunshout 2012. 3. 23. 08:49
lspci -vv | more
LnkSta: Speed 5GT/s, Width x4,

PCIe 버전 * Lane = 대역폭
- 예를 들어 10Gbps NIC으면 적어도 PCIe v2 x4 는 되어야 2000MB 
https://calomel.org/network_performance.html
(type)      (bus speed) *  (bus width)    / 8 = (speed in Megabytes/second)

PCI            66 MHz   *  32 bit         / 8 =   264 MB/s
PCIe v1      2500 Mhz   *  32 1 bit lanes / 8 =   250 MB/s (minus 20% overhead)
PCIe v2 x1   5000 Mhz   *   1 1 bit lane  / 8 =   500 MB/s (minus 20% overhead)
PCIe v2 x2   5000 Mhz   *   2 1 bit lanes / 8 =  1000 MB/s (minus 20% overhead)
PCIe v2 x4   5000 Mhz   *   4 1 bit lanes / 8 =  2000 MB/s (minus 20% overhead)
PCIe v2 x8   5000 Mhz   *   8 1 bit lanes / 8 =  4000 MB/s (minus 20% overhead)
PCIe v2 x16  5000 Mhz   *  16 1 bit lanes / 8 =  8000 MB/s (minus 20% overhead)
PCIe v2 x32  5000 Mhz   *  32 1 bit lanes / 8 = 16000 MB/s (minus 20% overhead)
PCIe v3 x32  5000 Mhz   *  32 1 bit lanes / 8 = 19700 MB/s (minus 1.5% overhead)


lspci -t -v

 \-[0000:00]-+-00.0  Intel Corporation 5500 I/O Hub to ESI Port
             +-01.0-[01]----00.0  LSI Logic / Symbios Logic SAS1064ET PCI-Express Fusion-MPT SAS
             +-03.0-[02]--+-00.0  Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection
             |            \-00.1  Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection
             +-07.0-[03]--

02:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
        Subsystem: QUANTA Computer Inc Device 8975
        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: 256 bytes
        Interrupt: pin A routed to IRQ 24
        Region 0: Memory at def80000 (64-bit, prefetchable) [size=512K]
        Region 2: I/O ports at cc00 [size=32]
        Region 4: Memory at def7c000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
                Address: 0000000000000000  Data: 0000
                Masking: 00000000  Pending: 00000000
        Capabilities: [70] MSI-X: Enable+ Count=64 Masked-
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00002000
        Capabilities: [a0] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 <1us, L1 <8us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-