Como calculo a largura de banda de tempo de execução do soquete PCIe usando o Process Control Monitor?

Como calculo a largura de banda de tempo de execução do soquete PCIe usando o Process Control Monitor?

Estou trabalhando em aprendizado profundo e tentando identificar um gargalo em nosso pipeline de GPU.

Estamos executando o Ubuntu em uma placa-mãe Intel Xeon com 4 NVIDIA Titan RTXs. A utilização da GPU medida pela nvidia-smi parece ser bastante baixa, embora o uso da memória da GPU esteja em torno de 97%.

Então estou tentando ver se o ônibus é o gargalo.

eu baixeiPCMe estou executando-o para monitorar o tráfego PCIe 3.0 x16.

Processor Counter Monitor: PCIe Bandwidth Monitoring Utility 
 This utility measures PCIe bandwidth in real-time

 PCIe event definitions (each event counts as a transfer): 
   PCIe read events (PCI devices reading from memory - application writes to disk/network/PCIe device):
     PCIeRdCur* - PCIe read current transfer (full cache line)
         On Haswell Server PCIeRdCur counts both full/partial cache lines
     RFO*      - Demand Data RFO
     CRd*      - Demand Code Read
     DRd       - Demand Data Read
   PCIe write events (PCI devices writing to memory - application reads from disk/network/PCIe device):
     ItoM      - PCIe write full cache line
     RFO       - PCIe partial Write
   CPU MMIO events (CPU reading/writing to PCIe devices):
     PRd       - MMIO Read [Haswell Server only] (Partial Cache Line)
     WiL       - MMIO Write (Full/Partial)
...
Socket 0: 2 memory controllers detected with total number of 6 channels. 3 QPI ports detected. 2 M2M (mesh to memory) blocks detected.
Socket 1: 2 memory controllers detected with total number of 6 channels. 3 QPI ports detected. 2 M2M (mesh to memory) blocks detected.
Trying to use Linux perf events...
Successfully programmed on-core PMU using Linux perf
Link 3 is disabled
Link 3 is disabled
Socket 0
Max QPI link 0 speed: 23.3 GBytes/second (10.4 GT/second)
Max QPI link 1 speed: 23.3 GBytes/second (10.4 GT/second)
Socket 1
Max QPI link 0 speed: 23.3 GBytes/second (10.4 GT/second)
Max QPI link 1 speed: 23.3 GBytes/second (10.4 GT/second)

Detected Intel(R) Xeon(R) Gold 5122 CPU @ 3.60GHz "Intel(r) microarchitecture codename Skylake-SP" stepping 4 microcode level 0x200004d
Update every 1.0 seconds
delay_ms: 54
Skt | PCIeRdCur |  RFO  |  CRd  |  DRd  |  ItoM  |  PRd  |  WiL
 0      13 K        19 K     0       0      220 K    84     588  
 1       0        3024       0       0        0       0     264  
-----------------------------------------------------------------------
 *      13 K        22 K     0       0      220 K    84     852  

Ignore os valores reais por um momento. Tenho valores muito maiores. :-)

Como calculo a largura de banda de tempo de execução do soquete PCIe usando o Process Control Monitor?

Por que existem apenas dois soquetes listados?

Responder1

Deopcm do github:

soquete referem-se a soquetes de CPU, não a slots ou dispositivos PCIe. Você tem um sistema com 2 soquetes de CPU, certo? A saída --help descreve a opção -B para largura de banda de saída por soquete de CPU (veja também a advertência aqui com operações parciais). pci-iio.x é um utilitário diferente que mostra a largura de banda por dispositivo PCIe.

informação relacionada