Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to run few benchmarks, which require 1Gbps connectivity between two VMs on the same physical host. I found on the web, that using virtio as my network card adapter should do that for me, but I am getting speed of only 400-500 Mbits/second.

My ethernet card for host base is 1000Mbps

Settings for eth0:

  • Supported ports: [ FIBRE ]
  • Supported link modes: 1000baseT/Full
  • Supports auto-negotiation: Yes
  • Advertised link modes: 1000baseT/Full
  • Advertised pause frame use: No
  • Advertised auto-negotiation: Yes
  • Link partner advertised link modes: Not reported
  • Link partner advertised pause frame use: No
  • Link partner advertised auto-negotiation: No
  • Speed: 1000Mb/s
  • Duplex: Full
  • Port: FIBRE
  • PHYAD: 1
  • Transceiver: internal
  • Auto-negotiation: on
  • Supports Wake-on: g
  • Wake-on: g
  • Link detected: yes

But my virtual network interface is only 10mbps.

Settings for vnet0:

  • Supported ports: [ ]
  • Supported link modes:
  • Supports auto-negotiation: No
  • Advertised link modes: Not reported
  • Advertised pause frame use: No
  • Advertised auto-negotiation: No
  • Link partner advertised link modes: Not reported
  • Link partner advertised pause frame use: No
  • Link partner advertised auto-negotiation: No
  • Speed: 10Mb/s
  • Duplex: Full
  • Port: Twisted Pair
  • PHYAD: 0
  • Transceiver: internal
  • Auto-negotiation: off
  • MDI-X: Unknown
  • Current message level: 0xffffffa1 (-95)
  • Link detected: yes

Any idea, where am I falling short?

share|improve this question

migrated from stackoverflow.com Dec 20 '11 at 21:06

This question came from our site for professional and enthusiast programmers.

    
Mainly on choice of the site. It has not much to do with programming... –  glglgl Dec 20 '11 at 15:35
    
Change the guest Virtual NICs to gigabit? –  kobaltz Dec 20 '11 at 21:15

1 Answer 1

I suspect that the virtio driver is reporting the speed incorrectly (since it doesn't really have a maximum speed). Also, the physical host's NIC doesn't affect traffic between VMs. Pushing that much traffic requires a fair amount of work by the host, so you're probably limited by that. What is the CPU usage of the host during the test? Later versions of KVM have some performance improvements with regard to networking, so you may want to consider upgrading if you need the additional performance.

share|improve this answer
    
Yes.. lateri found out it was limited by CPU and the physical NIC has nothing to do with inter-VM connectivity looks like there was some problem in VM-configs –  akshay singh Jul 18 '12 at 21:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.