传输速度比NICbuild议的要快

我跟着这个线程获取有关读取网卡速度的信息。 我如何validation我的网卡的速度?

我正在使用ethtool来validation我的网卡的速度正如讨论的线程。

:~ # ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: off Supports Wake-on: d Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes :~ # dmesg |grep eth0 [ 5.347423] e1000 0000:02:00.0: eth0: (PCI:66MHz:32-bit) 00:50:56:8b:26:0e [ 5.347533] e1000 0000:02:00.0: eth0: Intel(R) PRO/1000 Network Connection [ 43.467863] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [3656340.307349] e1000: eth0 NIC Link is Down [3656340.312386] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [30612796.474526] device eth0 entered promiscuous mode [30612946.780348] device eth0 left promiscuous mode 

我知道,这是一个虚拟机,网卡应该模拟一个1000Mbs的速度。 这使得128MB的1秒,这应该是我的瓶颈,每个NFS相关的转让,通过这台主机。 (到目前为止这是否正确?)

我把一个Netapp NFS共享挂载到这个主机,并开始写一个文件。 这是一个networking共享,所以速度应该受到NIC所造成的瓶颈的限制。

 > time ; dd if=/dev/zero of=/test/1GB_file bs=1GB count=1 1.032u 27.065s 7:08:35.06 0.1% 0+0k 203632+27343968io 43pf+0w 1+0 records in 1+0 records out 1000000000 bytes (1.0 GB) copied, 3.92766 s, 255 MB/s 

我重复了dd命令,总是在250MB / s左右。 高于128MB / s的方式== 1000Mbps。

我错过了什么? 为什么这个数字高于networking带宽?

在虚拟机中,网卡的速度并不是真正的限制。 如果主机可以推送2000Mb / s给客人,那就这样吧。