2017年4月27日 星期四

PCIe 3.0頻寬


目前用的PCI Express(PCI-E或PCIe)主流是3.0。一般一條PCIe插槽會有通道(lane)的差別,單通道叫做x1 link、雙通道叫x2 link、16通道叫做x16 link。下面列出PCIe 3.0常用到的頻寬:
  • PCIe 3.0 x1:8 Gbps (Gbit/s) = 984.6 MB/s ≈ 1 GB/s
  • PCIe 3.0 x4:32 Gbps = 3.938 GB/s ≈ 4 GB/s
  • PCIe 3.0 x8:64 Gbps = 7.877 GB/s ≈ 8 GB/s
  • PCIe 3.0 x16:128 Gbps = 15.754 GB/s ≈ 16 GB/s

若機器上面的插槽都是PCIe 3.0的話
  • 一個普通的硬碟的讀寫速度是123MB/s的話,一個8 port的磁碟陣列卡只需要x1插槽就足夠餵飽八個硬碟;所以要一張卡要給16個硬碟,那麼選x4插槽
  • 一張含有4-port Gigabit Ethernet的網卡,那麼x1插槽也夠用
  • 一張含有2-port 10Gb Ethernet的光纖卡,那需要用到x4的插槽
  • 一張含有single port 100Gb Ethernet的光纖卡,一定要插在x16的插槽上
目前看到有single port 200Gb Ethernet的卡,這種暴力卡會把一般主機板的頻寬都塞爆。需要去找那種有PCIe 4.0插槽的才可以餵飽這種怪物

_EOF_

A full page of a mechanical blueprint showing a cutaway design for a mechanized brontosaurus from howl's moving castle (2004), with people inside piloting it, muted colors, post grunge, studio ghibli, hq,

Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 4185465009, Size: 512x512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Version: v1.6.0-2-g4afaaf8a

Time taken: 10 min. 32.5 sec.
A: 3.47 GB, R: 3.57 GB, Sys: 2.0/2 GB (100.0%)

4 則留言:

  1. 請問一下,
    那麼1050Ti的 memory Bandwidth是 112 GB/s
    那不就代表PCIE 3.0 x16也無法滿足?

    回覆刪除
    回覆
    1. 顯示卡的memory bandwidth只的是GPU與顯卡上面的記憶體的頻寬,而不是與主機板上CPU的記憶體溝通速度
      https://superuser.com/questions/1186150/whats-the-difference-between-gpu-memory-bandwidth-and-speed

      刪除
    2. 請問如果我用2台server,2張4port 10G網卡4條網路線對接,如果用x16 gen3 這樣跑的話,是不是代表4個port同時傳輸的速度加總不會超過15.75?

      刪除
    3. 要注意byte與bit的轉換
      * PCIe 3.0 x16 ≈16 GB/s = 128 Gbps
      * 10G網卡單孔是10 Gbps,4 port就是 40 Gbps
      故4 port 10G ethernet card只要PCIe 3.0 x8就可以餵飽網卡了

      刪除