wiki:wade/sr-iov

Version 6 (modified by wade, 13 years ago) (diff)

--

環境

  • 網卡:Intel 82599EB 10 Gigabit
    • module:
      • ixgbe
      • ixgbevf

測試指令

  • 載入網卡 module:
    • 僅載入網卡
      modprob ixgbevf
      modprob ixgbe
      
    • 載入網卡及 8 個 VF
      modprob ixgbe max_vfs=8
      
    • module 設定:
      vim /etc/modprobe.d/ixgbe.conf
      
    • 網卡設定:
      vim /etc/udev/rules.d/70-persistent-net.rules
      
  • 列出 ixgbe 網卡 module:
    lsmod | grep ixgbe
    
  • 列出 82599 網卡及 VF:
    lspci | grep 82599
    lspci | grep Virtual
    
  • 卸載網卡 module:
    • 卸載網卡前,要先檢查 VM 是否已經全部關閉:
      virsh list --all
      
    • 卸載網卡:
      modprob -r ixgbe
      

實驗

  • node 04、05
    • 實體 eth
      • eth2:右邊
      • eht4:左邊

1 實體機器 vs 1 實體機器

  • 設定
    • node04
      • eth2:192.168.100.42
      • eth4
    • node05
      • eth2:192.168.100.52
      • eth4
  • node04,eth02,server → node05,eth02,client
    • 透過 switch:
      • server
        [ ID] Interval       Transfer     Bandwidth
        [  4]  0.0-30.0 sec  9.97 GBytes  2.85 Gbits/sec
        [  5] local 192.168.100.42 port 5001 connected with 192.168.100.52 port 43095
        [  5]  0.0-30.0 sec  10.1 GBytes  2.90 Gbits/sec
        [  4] local 192.168.100.42 port 5001 connected with 192.168.100.52 port 57572
        [  4]  0.0-30.0 sec  10.2 GBytes  2.91 Gbits/sec
        
      • client:
        ex-01、ex-02、ex-03
        
  • node04,eth02,server → node05,eth02,client
    • 網路卡對接、換短點的網路線:
      • server
        [ ID] Interval       Transfer     Bandwidth
        [  4]  0.0-30.0 sec  8.47 GBytes  2.42 Gbits/sec
        [  5] local 192.168.100.42 port 5001 connected with 192.168.100.52 port 36116
        [  5]  0.0-30.0 sec  8.24 GBytes  2.36 Gbits/sec
        [  4] local 192.168.100.42 port 5001 connected with 192.168.100.52 port 36117
        [  4]  0.0-30.0 sec  8.27 GBytes  2.37 Gbits/sec
        
      • client:
        ex-04、ex-05、ex-06
        

Reference