Tuesday, April 13, 2010

Network Speed Test (IPerf) in KVM (Virtio-net, emulated, vt-d)


Note: Some of the numbers are too big, so the numbers on top of the bars shows their actual number. So they won't mess up the scale.

Summary of Results:
  • One should use Virtio in favor of VT-d pass-through, or emulated Network Driver
  • Emulated NICs are much slower than Virtio or VT-d
  • The MAX bandwidth of Virtio connecting to a remote is very close to VT-d or Native
  • Using Virtio to connect to Dom0 is much faster than using VT-d (since in our setup VT-d is a second NIC)

Type of Setup:

[a] Emulation (rtl8139)
Emulating an rtl8139 100Mbps-NIC, this is the default if you don't change anything with virt-install. (I.E. eucalyptus might get this one).

[b] Emulation (e1000)
Emulating an e1000 1Gbps-NIC, set in libvirt xml file, which produces a "-net nic,macaddr=xxx,vlan=0,model=e1000" in kvm arguements.

[c] VT-d (e1000 PCI Passthrough)
Passing a e1000 NIC from host to guest via VT-d. Need to be specified at virt-install "--host-device=pci_8086_3a20" (otherwise you need to handle the complex pci driver loading/unloading), where "pci_8086_3a20" is the name of the NIC. Use lspci -v and virsh nodedev-list to see them.

[d] Virtio
Using the virtio_net driver, set in libvirt xml file, which produces a "-net nic,macaddr=xxx,vlan=0,model=virtio" in kvm arguements.
Note: to load the virtio_net driver correctly in SLC5 DomU (guest) one need to remake an initrd image like below:
mkinitrd -f --with=virtio --with=virtio_pci --with=virtio_ring --with=virtio_blk --with=virtio_net initrd-2.6.18-164.15.1.el5.virtio.img 2.6.18-164.15.1.el5

[z] Native (Run in Dom0 - e1000)
This is the control setup, in this case all test commands are run within Dom0 (the host computer).


Server Command:
iperf -s -w 65536 -p 12345

Client Command:

[1] Link to dom0
iperf -c dom0 -w 65536 -p 12345 -t 60

[2] Link to dom0 with 4 spontaneous threads
iperf -c dom0 -w 65536 -p 12345 -t 60 -P 4

[3] Link to a remote box on the same switch
iperf -c remote -w 65536 -p 12345 -t 60 -P 4

[4] Link to a remote box on the same switch with 4 spontaneous threads
iperf -cremote -w 65536 -p 12345 -t 60 -P 4

8 comments:

  1. Can you explain how your network is faster than you ram? 36 GB/sec is about 8x the speed of ram on any really fast modern system. Your testing is suspect.

    ReplyDelete
  2. Polo Ralph Lauren Corporation is a leader in the design,marketing and distribution of premium lifestyle products in four categories: apparel,home, accessories and fragrances. For more than 43 years, polo ralph lauren outlet reputation and distinctive image have been consistently developed across an expanding number of products, brands and internation markets

    Polo Ralph Lauren Corporation is a leader in the design,marketing and distribution of premium lifestyle products in four categories: apparel,home, accessories and fragrances. For more than 43 years, ralph lauren outlet reputation and distinctive image have been consistently developed across an expanding number of products, brands and internation markets

    Abercrombie ia an American based retailer and fashion brand for casual apparel for men, women and childre. It stocks personal care items, casual clothing,and discount deals.It operates on a multinational basis with more than 1000 stores as well as online shopping and enjoys a huge and loyal customer base which loves abercrombie coupons range and latest style.

    ReplyDelete
  3. Polo Ralph Lauren Corporation is a leader in the design,marketing and distribution of premium lifestyle products in four categories: apparel,home, accessories and fragrances. For more than 43 years, polo ralph lauren outlet reputation and distinctive image have been consistently developed across an expanding number of products, brands and internation markets

    Polo Ralph Lauren Corporation is a leader in the design,marketing and distribution of premium lifestyle products in four categories: apparel,home, accessories and fragrances. For more than 43 years, ralph lauren outlet reputation and distinctive image have been consistently developed across an expanding number of products, brands and internation markets

    Abercrombie ia an American based retailer and fashion brand for casual apparel for men, women and childre. It stocks personal care items, casual clothing,and discount deals.It operates on a multinational basis with more than 1000 stores as well as online shopping and enjoys a huge and loyal customer base which loves abercrombie coupons range and latest style.

    ReplyDelete
  4. The talent trees are better right now, nonetheless with no sacrificing a good number of interesting depth wow gold. Many of might know about minimize were being unaggressive abilities which all people procured at any rate, as well as unable to walk abilities which would almost nothing. Deciding on your own more focused from 12 levels requiring you to hesitate trying to play your own nature the method that you really want seems good. It is possible to perform your own shaman since essential as well as enhancer with all the gear in addition to add-ons to create also perform. Specialization skills wow po with a school think several. This was an enormous concern for any DPS warriors, warlocks, predators, and rogues specifically. At present all those specialization skills own WoW gold,rotations, benefits and WoW powerleveling,plus a several flavour general.Mastery combines in to the timber good.You can hesitate that complexness right until better levels, in addition to we’re in the place right now exactly where it’s any cut-throat announc for most specialization skills. There are numerous genuine challenging options for most specialization skills.All the skill can help you to earn wow gold eu buying.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Thanks for great post,Hub4Tech.com is provied CCNA Tutorial & CCNA Syllabus.CCNA Route & Switch Syllabus is Operation of IP Data Networks,LAN Switching Technologies,IP addressing (IPv4 /IPv6),IP Routing Technologies,IP Services,Network Device,Security,WAN Technologies.CCNA Online Test Paper.

    ReplyDelete
  7. Howdy! I simply would like to give a huge thumbs up for the good data you have here on this post. I will probably be coming again to your weblog for more soon.

    What is My IP | My IP Address | IP Lookup | Speed Test

    ReplyDelete
  8. Good articles, Have you heard of LFDS (Le_Meridian Funding Service, Email: lfdsloans@outlook.com --WhatsApp Contact:+1-9893943740--lfdsloans@lemeridianfds.com) is as USA/UK funding service they grant me loan of $95,000.00 to launch my business and I have been paying them annually for two years now and I still have 2 years left although I enjoy working with them because they are genuine Loan lender who can give you any kind of loan.

    ReplyDelete