All of lore.kernel.org
 help / color / mirror / Atom feed
* Very bad Speed with Virtio-net
@ 2010-01-07 10:52 Benjamin Schweikert
  2010-01-07 11:21 ` Riccardo Veraldi
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Schweikert @ 2010-01-07 10:52 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

Hello everybody,
this is my first post on a mailing list, so i hope everything works fine.

My host is a AMD X2 4850e with a 64bit Gentoo (unstable). I have tested 
qemu-kvm 0.11, 0.12.x and the git version from the 6. jan.
I created my own bridges, so i dont need the option from libvirt. I 
bridged a 1 Gb lan card for my VMs. When I use the virtio net driver,
i get something about 200-300 mbit form my desktop to one if my VMs. If 
iI use the e1000 driver instead of the virtio I get about
500 - 600 mbit.
I tested this with the following kernels:
Host: 2.6.31.6, 2.6.32.1, 2.6.32.2
Guests: 2.6.26, 2.6.30, 2.6.32 (debian)
2.6.32 (gentoo)

Here is a default result, virtio vs. e1000:

iperf -c 192.168.0.3 -w 512k -l 512k
------------------------------------------------------------
Client connecting to 192.168.0.3, TCP port 5001
TCP window size:   256 KByte (WARNING: requested   512 KByte)
------------------------------------------------------------
[  3] local 192.168.0.2 port 52968 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec    438 MBytes    267 Mbits/sec


iperf -c 192.168.0.3 -w 512k -l 512k
------------------------------------------------------------
Client connecting to 192.168.0.3, TCP port 5001
TCP window size:   256 KByte (WARNING: requested   512 KByte)
------------------------------------------------------------
[  3] local 192.168.0.2 port 52995 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec    602 MBytes    505 Mbits/sec

Any ideas what this could be? I attach a dmesg output of my host.
Thx.

Ben

[-- Attachment #2: dmesg.txt --]
[-- Type: text/plain, Size: 33264 bytes --]

Linux version 2.6.32-gentoo-r1 (root@tux) (gcc version 4.4.2 (Gentoo 4.4.2 p1.0) ) #2 SMP Wed Jan 6 12:04:57 CET 2010
Command line: root=/dev/sda2
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
 BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000cfeb0000 (usable)
 BIOS-e820: 00000000cfeb0000 - 00000000cfebe000 (ACPI data)
 BIOS-e820: 00000000cfebe000 - 00000000cfee0000 (ACPI NVS)
 BIOS-e820: 00000000cfee0000 - 00000000cfeee000 (reserved)
 BIOS-e820: 00000000cfef0000 - 00000000cff00000 (reserved)
 BIOS-e820: 00000000ff700000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000001a0000000 (usable)
DMI present.
AMI BIOS detected: BIOS may corrupt low RAM, working around it.
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
last_pfn = 0x1a0000 max_arch_pfn = 0x400000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-EFFFF uncachable
  F0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 0000000000 mask FF80000000 write-back
  1 base 0080000000 mask FFC0000000 write-back
  2 base 00C0000000 mask FFF0000000 write-back
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
TOM2: 00000001b0000000 aka 6912M
e820 update range: 00000000d0000000 - 0000000100000000 (usable) ==> (reserved)
last_pfn = 0xcfeb0 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000cfeb0000
 0000000000 - 00cfe00000 page 2M
 00cfe00000 - 00cfeb0000 page 4k
kernel direct mapping tables up to cfeb0000 @ 10000-16000
init_memory_mapping: 0000000100000000-00000001a0000000
 0100000000 - 01a0000000 page 2M
kernel direct mapping tables up to 1a0000000 @ 14000-1c000
ACPI: RSDP 00000000000f9e40 00014 (v00 ACPIAM)
ACPI: RSDT 00000000cfeb0000 0003C (v01 110608 RSDT1133 20081106 MSFT 00000097)
ACPI: FACP 00000000cfeb0200 00084 (v02 110608 FACP1133 20081106 MSFT 00000097)
ACPI: DSDT 00000000cfeb0440 04D44 (v01  1AAAA 1AAAA000 00000000 INTL 20051117)
ACPI: FACS 00000000cfebe000 00040
ACPI: APIC 00000000cfeb0390 0006C (v01 110608 APIC1133 20081106 MSFT 00000097)
ACPI: MCFG 00000000cfeb0400 0003C (v01 110608 OEMMCFG  20081106 MSFT 00000097)
ACPI: OEMB 00000000cfebe040 00071 (v01 110608 OEMB1133 20081106 MSFT 00000097)
ACPI: HPET 00000000cfeb5190 00038 (v01 110608 OEMHPET  20081106 MSFT 00000097)
ACPI: SSDT 00000000cfeb51d0 0028A (v01 A M I  POWERNOW 00000001 AMD  00000001)
ACPI: Local APIC address 0xfee00000
(7 early reservations) ==> bootmem [0000000000 - 01a0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001a7ca84]    TEXT DATA BSS ==> [0001000000 - 0001a7ca84]
  #3 [000009f400 - 0000100000]    BIOS reserved ==> [000009f400 - 0000100000]
  #4 [0001a7d000 - 0001a7d0f1]              BRK ==> [0001a7d000 - 0001a7d0f1]
  #5 [0000010000 - 0000014000]          PGTABLE ==> [0000010000 - 0000014000]
  #6 [0000014000 - 0000017000]          PGTABLE ==> [0000014000 - 0000017000]
found SMP MP-table at [ffff8800000ff780] ff780
 [ffffea0000000000-ffffea0005bfffff] PMD -> [ffff880001c00000-ffff880006dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000010 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x001a0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000010 -> 0x0000009f
    0: 0x00000100 -> 0x000cfeb0
    0: 0x00100000 -> 0x001a0000
On node 0 totalpages: 1506879
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 833256 pages, LIFO batch:31
  Normal zone: 8960 pages used for memmap
  Normal zone: 646400 pages, LIFO batch:31
Detected use of extended apic ids on hypertransport bus
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 33, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8300 base: 0xfed00000
4 Processors exceeds NR_CPUS limit of 2
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
Allocating PCI resources starting at cff00000 (gap: cff00000:2f800000)
Booting paravirtualized kernel on bare hardware
NR_CPUS:2 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 27 pages/cpu @ffff880007000000 s80536 r8192 d21864 u1048576
pcpu-alloc: s80536 r8192 d21864 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1483477
Kernel command line: root=/dev/sda2
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
Initializing CPU#0
Checking aperture...
No AGP bridge found
Node 0: aperture @ 6200000000 size 32 MB
Aperture beyond 4GB. Ignoring.
Your BIOS doesn't leave a aperture memory hole
Please enable the IOMMU option in the BIOS setup
This costs you 64 MB of RAM
Mapping aperture over 65536 KB of RAM @ 20000000
Memory: 5853444k/6815744k available (6765k kernel code, 788228k absent, 173152k reserved, 2795k data, 536k init)
Hierarchical RCU implementation.
NR_IRQS:320
Console: colour VGA+ 80x25
console [tty0] enabled
hpet clockevent registered
HPET: 4 timers in total, 1 timers will be used for per-cpu timer
Fast TSC calibration using PIT
Detected 2499.880 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 5001.08 BogoMIPS (lpj=8332933)
Security Framework initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
tseg: 0000000000
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
using C1E aware idle routine
Performance Events: AMD PMU driver.
... version:                0
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             00007fffffffffff
... fixed-purpose events:   0
... event mask:             000000000000000f
ACPI: Core revision 20090903
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: AMD Athlon(tm) Dual Core Processor 4850e stepping 02
Booting processor 1 APIC 0x1 ip 0x6000
Initializing CPU#1
Calibrating delay using timer specific routine.. 5002.45 BogoMIPS (lpj=8333520)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU1: 
System has AMD C1E enabled
Switch to broadcast mode on CPU1
AMD Athlon(tm) Dual Core Processor 4850e stepping 02
Brought up 2 CPUs
Total of 2 processors activated (10003.53 BogoMIPS).
CPU0 attaching sched-domain:
 domain 0: span 0-1 level MC
  groups: 0 1
CPU1 attaching sched-domain:
 domain 0: span 0-1 level MC
  groups: 1 0
Switch to broadcast mode on CPU0
Time:  6:00:18  Date: 01/07/10
NET: Registered protocol family 16
node 0 link 0: io port [1000, ffffff]
TOM: 00000000d0000000 aka 3328M
node 0 link 0: mmio [a0000, bffff]
node 0 link 0: mmio [d0000000, fdefffff]
node 0 link 0: mmio [fe000000, fe6fffff]
node 0 link 0: mmio [fec00000, ffefffff]
TOM2: 00000001b0000000 aka 6912M
bus: [00,07] on node 0 link 0
bus: 00 index 0 io port: [0, ffff]
bus: 00 index 1 mmio: [a0000, bffff]
bus: 00 index 2 mmio: [d0000000, fdffffff]
bus: 00 index 3 mmio: [fe000000, febfffff]
bus: 00 index 4 mmio: [fec00000, ffffffff]
bus: 00 index 5 mmio: [1b0000000, fcffffffff]
ACPI: bus type pci registered
PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
PCI: Not using MMCONFIG.
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI Error (psargs-0359): [ECEN] Namespace lookup failure, AE_NOT_FOUND
ACPI Error (psparse-0537): Method parse/execution failed [\] (Node ffffffff81a65920), AE_NOT_FOUND
ACPI: Executed 4 blocks of module-level executable AML code
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S3 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
PCI: MCFG area at e0000000 reserved in ACPI motherboard resources
PCI: Using MMCONFIG at e0000000 - efffffff
ACPI Warning: Incorrect checksum in table [OEMB] - 08, should be 07 (20090903/tbutils-314)
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:06.0: PME# supported from D0 D3hot D3cold
pci 0000:00:06.0: PME# disabled
pci 0000:00:11.0: reg 10 io port: [0xc000-0xc007]
pci 0000:00:11.0: reg 14 io port: [0xb000-0xb003]
pci 0000:00:11.0: reg 18 io port: [0xa000-0xa007]
pci 0000:00:11.0: reg 1c io port: [0x9000-0x9003]
pci 0000:00:11.0: reg 20 io port: [0x8000-0x800f]
pci 0000:00:11.0: reg 24 32bit mmio: [0xfe3ff800-0xfe3ffbff]
pci 0000:00:12.0: reg 10 32bit mmio: [0xfe3fe000-0xfe3fefff]
pci 0000:00:12.1: reg 10 32bit mmio: [0xfe3fd000-0xfe3fdfff]
pci 0000:00:12.2: reg 10 32bit mmio: [0xfe3ff000-0xfe3ff0ff]
pci 0000:00:12.2: supports D1 D2
pci 0000:00:12.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:12.2: PME# disabled
pci 0000:00:13.0: reg 10 32bit mmio: [0xfe3fc000-0xfe3fcfff]
pci 0000:00:13.1: reg 10 32bit mmio: [0xfe3f7000-0xfe3f7fff]
pci 0000:00:13.2: reg 10 32bit mmio: [0xfe3f6800-0xfe3f68ff]
pci 0000:00:13.2: supports D1 D2
pci 0000:00:13.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:13.2: PME# disabled
pci 0000:00:14.1: reg 10 io port: [0x00-0x07]
pci 0000:00:14.1: reg 14 io port: [0x00-0x03]
pci 0000:00:14.1: reg 18 io port: [0x00-0x07]
pci 0000:00:14.1: reg 1c io port: [0x00-0x03]
pci 0000:00:14.1: reg 20 io port: [0xff00-0xff0f]
pci 0000:00:14.2: reg 10 64bit mmio: [0xfe3f0000-0xfe3f3fff]
pci 0000:00:14.2: PME# supported from D0 D3hot D3cold
pci 0000:00:14.2: PME# disabled
pci 0000:00:14.5: reg 10 32bit mmio: [0xfe3f5000-0xfe3f5fff]
pci 0000:01:05.0: reg 10 32bit mmio pref: [0xd0000000-0xdfffffff]
pci 0000:01:05.0: reg 14 io port: [0xd000-0xd0ff]
pci 0000:01:05.0: reg 18 32bit mmio: [0xfe5f0000-0xfe5fffff]
pci 0000:01:05.0: reg 24 32bit mmio: [0xfe400000-0xfe4fffff]
pci 0000:01:05.0: supports D1 D2
pci 0000:01:05.1: reg 10 32bit mmio: [0xfe5e8000-0xfe5ebfff]
pci 0000:01:05.1: supports D1 D2
pci 0000:00:01.0: bridge io port: [0xd000-0xdfff]
pci 0000:00:01.0: bridge 32bit mmio: [0xfe400000-0xfe5fffff]
pci 0000:00:01.0: bridge 64bit mmio pref: [0xd0000000-0xdfffffff]
pci 0000:02:00.0: reg 10 64bit mmio: [0xfe6c0000-0xfe6fffff]
pci 0000:02:00.0: reg 30 32bit mmio pref: [0xfe6a0000-0xfe6bffff]
pci 0000:02:00.0: PME# supported from D3hot D3cold
pci 0000:02:00.0: PME# disabled
pci 0000:00:06.0: bridge 32bit mmio: [0xfe600000-0xfe6fffff]
pci 0000:03:05.0: reg 10 32bit mmio: [0xfe7f0000-0xfe7fffff]
pci 0000:00:14.4: transparent bridge
pci 0000:00:14.4: bridge io port: [0xe000-0xefff]
pci 0000:00:14.4: bridge 32bit mmio: [0xfe700000-0xfebfffff]
pci 0000:00:14.4: bridge 32bit mmio pref: [0xfdf00000-0xfdffffff]
pci 0000:04:04.0: reg 10 32bit mmio pref: [0xfdfff000-0xfdffffff]
pci 0000:04:04.0: reg 14 io port: [0xe800-0xe81f]
pci 0000:04:04.0: reg 18 32bit mmio: [0xfeb00000-0xfebfffff]
pci 0000:04:04.0: reg 30 32bit mmio pref: [0xfea00000-0xfeafffff]
pci 0000:04:04.0: supports D1 D2
pci 0000:04:04.0: PME# supported from D0 D1 D2 D3hot
pci 0000:04:04.0: PME# disabled
pci 0000:04:05.0: reg 10 32bit mmio pref: [0xfdffe000-0xfdffefff]
pci 0000:04:05.0: reg 14 io port: [0xe400-0xe41f]
pci 0000:04:05.0: reg 18 32bit mmio: [0xfe900000-0xfe9fffff]
pci 0000:04:05.0: reg 30 32bit mmio pref: [0xfe800000-0xfe8fffff]
pci 0000:04:05.0: supports D1 D2
pci 0000:04:05.0: PME# supported from D0 D1 D2 D3hot
pci 0000:04:05.0: PME# disabled
pci 0000:03:06.0: bridge io port: [0xe000-0xefff]
pci 0000:03:06.0: bridge 32bit mmio: [0xfe800000-0xfebfffff]
pci 0000:03:06.0: bridge 64bit mmio pref: [0xfdf00000-0xfdffffff]
pci_bus 0000:00: on NUMA node 0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0PC._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 4 *7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 4 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 4 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 4 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 4 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 4 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 4 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 4 7 10 11 12 14 15) *0, disabled.
vgaarb: device added: PCI:0000:01:05.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
NET: Registered protocol family 8
NET: Registered protocol family 20
hpet: hpet2 irq 24 for MSI
Switching to clocksource hpet
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 14 devices
ACPI: ACPI bus type pnp unregistered
system 00:08: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:08: iomem range 0xfee00000-0xfee00fff has been reserved
system 00:09: ioport range 0x4d0-0x4d1 has been reserved
system 00:09: ioport range 0x40b-0x40b has been reserved
system 00:09: ioport range 0x4d6-0x4d6 has been reserved
system 00:09: ioport range 0xc00-0xc01 has been reserved
system 00:09: ioport range 0xc14-0xc14 has been reserved
system 00:09: ioport range 0xc50-0xc51 has been reserved
system 00:09: ioport range 0xc52-0xc52 has been reserved
system 00:09: ioport range 0xc6c-0xc6c has been reserved
system 00:09: ioport range 0xc6f-0xc6f has been reserved
system 00:09: ioport range 0xcd0-0xcd1 has been reserved
system 00:09: ioport range 0xcd2-0xcd3 has been reserved
system 00:09: ioport range 0xcd4-0xcd5 has been reserved
system 00:09: ioport range 0xcd6-0xcd7 has been reserved
system 00:09: ioport range 0xcd8-0xcdf has been reserved
system 00:09: ioport range 0xa7a-0xb1f has been reserved
system 00:09: ioport range 0xb30-0xbff has been reserved
system 00:09: ioport range 0x800-0x89f has been reserved
system 00:09: ioport range 0xb20-0xb3f could not be reserved
system 00:09: ioport range 0x900-0x90f has been reserved
system 00:09: ioport range 0x910-0x91f has been reserved
system 00:09: ioport range 0xfe00-0xfefe has been reserved
system 00:09: iomem range 0xffb80000-0xffbfffff has been reserved
system 00:09: iomem range 0xfec10000-0xfec1001f has been reserved
system 00:0b: ioport range 0xe00-0xe0f has been reserved
system 00:0b: ioport range 0xe80-0xe8f has been reserved
system 00:0b: ioport range 0xf40-0xf4f has been reserved
system 00:0b: ioport range 0xa30-0xa3f has been reserved
system 00:0c: iomem range 0xe0000000-0xefffffff has been reserved
system 00:0d: iomem range 0x0-0x9ffff could not be reserved
system 00:0d: iomem range 0xc0000-0xcffff has been reserved
system 00:0d: iomem range 0xe0000-0xfffff could not be reserved
system 00:0d: iomem range 0x100000-0xcfefffff could not be reserved
system 00:0d: iomem range 0xfec00000-0xffffffff could not be reserved
pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0:   IO window: 0xd000-0xdfff
pci 0000:00:01.0:   MEM window: 0xfe400000-0xfe5fffff
pci 0000:00:01.0:   PREFETCH window: 0x000000d0000000-0x000000dfffffff
pci 0000:00:06.0: PCI bridge, secondary bus 0000:02
pci 0000:00:06.0:   IO window: disabled
pci 0000:00:06.0:   MEM window: 0xfe600000-0xfe6fffff
pci 0000:00:06.0:   PREFETCH window: disabled
pci 0000:03:06.0: PCI bridge, secondary bus 0000:04
pci 0000:03:06.0:   IO window: 0xe000-0xefff
pci 0000:03:06.0:   MEM window: 0xfe800000-0xfebfffff
pci 0000:03:06.0:   PREFETCH window: 0x000000fdf00000-0x000000fdffffff
pci 0000:00:14.4: PCI bridge, secondary bus 0000:03
pci 0000:00:14.4:   IO window: 0xe000-0xefff
pci 0000:00:14.4:   MEM window: 0xfe700000-0xfebfffff
pci 0000:00:14.4:   PREFETCH window: 0xfdf00000-0xfdffffff
pci 0000:00:06.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
pci 0000:00:06.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:01: resource 0 io:  [0xd000-0xdfff]
pci_bus 0000:01: resource 1 mem: [0xfe400000-0xfe5fffff]
pci_bus 0000:01: resource 2 pref mem [0xd0000000-0xdfffffff]
pci_bus 0000:02: resource 1 mem: [0xfe600000-0xfe6fffff]
pci_bus 0000:03: resource 0 io:  [0xe000-0xefff]
pci_bus 0000:03: resource 1 mem: [0xfe700000-0xfebfffff]
pci_bus 0000:03: resource 2 pref mem [0xfdf00000-0xfdffffff]
pci_bus 0000:03: resource 3 io:  [0x00-0xffff]
pci_bus 0000:03: resource 4 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:04: resource 0 io:  [0xe000-0xefff]
pci_bus 0000:04: resource 1 mem: [0xfe800000-0xfebfffff]
pci_bus 0000:04: resource 2 pref mem [0xfdf00000-0xfdffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 262144 (order: 9, 2097152 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
pci 0000:01:05.0: Boot video device
pci 0000:04:04.0: Firmware left e100 interrupts enabled; disabling
pci 0000:04:05.0: Firmware left e100 interrupts enabled; disabling
PCI-DMA: Disabling AGP.
PCI-DMA: aperture base @ 20000000 size 65536 KB
PCI-DMA: using GART IOMMU.
PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
kvm: Nested Virtualization enabled
audit: initializing netlink socket (disabled)
type=2000 audit(1262844018.336:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Slow work thread pool: Starting up
Slow work thread pool: Ready
fuse init (API version 7.13)
SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 11434
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pcieport 0000:00:06.0: irq 25 for MSI/MSI-X
pcieport 0000:00:06.0: setting latency timer to 64
pci-stub: invalid id string ""
Linux agpgart interface v0.103
ACPI: processor limited to max C-state 1
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
thermal LNXTHERM:01: registered as thermal_zone0
ACPI: Thermal Zone [THRM] (30 C)
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
pci 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
pci 0000:01:05.0: setting latency timer to 64
[drm] Initialized radeon 1.31.0 20080528 for 0000:01:05.0 on minor 0
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
atiixp 0000:00:14.1: IDE controller (0x1002:0x439c rev 0x00)
pci 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
atiixp 0000:00:14.1: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xff00-0xff07
    ide1: BM-DMA at 0xff08-0xff0f
Probing IDE interface ide0...
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
ide-cd driver 5.00
ahci 0000:00:11.0: version 3.0
ahci 0000:00:11.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
ahci 0000:00:11.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp pio slum part ccc 
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
ata1: SATA max UDMA/133 abar m1024@0xfe3ff800 port 0xfe3ff900 irq 22
ata2: SATA max UDMA/133 abar m1024@0xfe3ff800 port 0xfe3ff980 irq 22
ata3: SATA max UDMA/133 abar m1024@0xfe3ff800 port 0xfe3ffa00 irq 22
ata4: SATA max UDMA/133 abar m1024@0xfe3ff800 port 0xfe3ffa80 irq 22
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
e100 0000:04:04.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
e100 0000:04:04.0: PME# disabled
e100: eth0: e100_probe: addr 0xfdfff000, irq 21, MAC addr 00:50:8b:b2:44:1b
e100 0000:04:05.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
e100 0000:04:05.0: PME# disabled
e100: eth1: e100_probe: addr 0xfdffe000, irq 22, MAC addr 00:50:8b:b2:44:1c
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:12.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ehci_hcd 0000:00:12.2: EHCI Host Controller
ehci_hcd 0000:00:12.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:12.2: applying AMD SB600/SB700 USB freeze workaround
ehci_hcd 0000:00:12.2: debug port 1
ehci_hcd 0000:00:12.2: irq 17, io mem 0xfe3ff000
ehci_hcd 0000:00:12.2: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ehci_hcd 0000:00:13.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
ehci_hcd 0000:00:13.2: EHCI Host Controller
ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:13.2: applying AMD SB600/SB700 USB freeze workaround
ehci_hcd 0000:00:13.2: debug port 1
ehci_hcd 0000:00:13.2: irq 19, io mem 0xfe3f6800
ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
116x: driver isp116x-hcd, 03 Nov 2005
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:12.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ohci_hcd 0000:00:12.0: OHCI Host Controller
ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:12.0: irq 16, io mem 0xfe3fe000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
ohci_hcd 0000:00:12.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ohci_hcd 0000:00:12.1: OHCI Host Controller
ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 4
ohci_hcd 0000:00:12.1: irq 16, io mem 0xfe3fd000
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 3 ports detected
ohci_hcd 0000:00:13.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
ohci_hcd 0000:00:13.0: OHCI Host Controller
ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 5
ohci_hcd 0000:00:13.0: irq 18, io mem 0xfe3fc000
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 3 ports detected
ohci_hcd 0000:00:13.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
ohci_hcd 0000:00:13.1: OHCI Host Controller
ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 6
ohci_hcd 0000:00:13.1: irq 18, io mem 0xfe3f7000
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 3 ports detected
ohci_hcd 0000:00:14.5: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ohci_hcd 0000:00:14.5: OHCI Host Controller
ohci_hcd 0000:00:14.5: new USB bus registered, assigned bus number 7
ohci_hcd 0000:00:14.5: irq 18, io mem 0xfe3f5000
ata4: SATA link down (SStatus 0 SControl 300)
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
uhci_hcd: USB Universal Host Controller Interface driver
sl811: driver sl811-hcd, 19 May 2005
r8a66597_hcd: driver r8a66597_hcd, 2009-05-26
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
Advanced Linux Sound Architecture Driver Version 1.0.21.
ALSA device list:
  No soundcards found.
TCP bic registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Installing 9P2000 support
powernow-k8: Found 1 AMD Athlon(tm) Dual Core Processor 4850e processors (2 cpu cores) (version 2.20.00)
powernow-k8:    0 : fid 0x11 (2500 MHz), vid 0xe
powernow-k8:    1 : fid 0x10 (2400 MHz), vid 0xf
powernow-k8:    2 : fid 0xe (2200 MHz), vid 0x11
powernow-k8:    3 : fid 0xc (2000 MHz), vid 0x13
powernow-k8:    4 : fid 0xa (1800 MHz), vid 0x15
powernow-k8:    5 : fid 0x2 (1000 MHz), vid 0x16
  Magic number: 10:89:13
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
ata3: softreset failed (device not ready)
ata3: applying SB600 PMP SRST workaround and retrying
ata2: softreset failed (device not ready)
ata2: applying SB600 PMP SRST workaround and retrying
ata1: softreset failed (device not ready)
ata1: applying SB600 PMP SRST workaround and retrying
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata3.00: ATA-7: SAMSUNG HD103SI, 1AG01118, max UDMA7
ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
ata3.00: configured for UDMA/133
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-7: SAMSUNG HD502IJ, 1AA01112, max UDMA7
ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
ata2.00: configured for UDMA/133
ata1.00: ATA-8: WDC WD3200BEVT-22ZCT0, 11.01A11, max UDMA/133
ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200BEVT-2 11.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HD502IJ  1AA0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
 sda:
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:0: Direct-Access     ATA      SAMSUNG HD103SI  1AG0 PQ: 0 ANSI: 5
 sdb:
sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdc: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
 sdc1
 sdb1
sd 2:0:0:0: [sdc] Attached SCSI disk

sd 1:0:0:0: [sdb] Attached SCSI disk
EXT3-fs: sda2: couldn't mount because of unsupported optional features (240).
EXT2-fs: sda2: couldn't mount because of unsupported optional features (240).
EXT4-fs (sda2): mounted filesystem with ordered data mode
VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
Freeing unused kernel memory: 536k freed
Clocksource tsc unstable (delta = -300385969 ns)
udev: starting version 149
input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
ACPI: Power Button [PWRB]
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
ACPI: Power Button [PWRF]
atl1 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
atl1 0000:02:00.0: setting latency timer to 64
atl1 0000:02:00.0: version 2.1.3
k8temp 0000:00:18.3: Temperature readouts might be wrong - check erratum #141
piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
input: PC Speaker as /devices/platform/pcspkr/input/input3
Driver 'rtc_cmos' needs updating - please use bus_type methods
rtc_cmos 00:03: RTC can wake from S4
rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
cfg80211: Calling CRDA to update world regulatory domain
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
cfg80211: Calling CRDA for country: EU
HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
udev: renamed network interface eth0 to eth1
udev: renamed network interface eth2 to eth0
udev: renamed network interface eth1_rename to eth2
ath9k 0000:03:05.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
HDA Intel 0000:01:05.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
HDA Intel 0000:01:05.1: setting latency timer to 64
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
phy0: Selected rate control algorithm 'ath9k_rate_control'
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR5416 MAC/BB Rev:2 AR2122 RF Rev:81: mem=0xffffc900101a0000, irq=20
cfg80211: Calling CRDA for country: CN
atl1 0000:02:00.0: irq 26 for MSI/MSI-X
atl1 0000:02:00.0: eth0 link is up 1000 Mbps full duplex
e100: eth1 NIC Link is Up 100 Mbps Full Duplex
e100: eth2 NIC Link is Up 100 Mbps Full Duplex
device wlan0 entered promiscuous mode
device eth1 entered promiscuous mode
brE: port 1(eth1) entering learning state
device eth0 entered promiscuous mode
brI: port 1(eth0) entering learning state
device eth2 entered promiscuous mode
brL: port 1(eth2) entering learning state
brE: port 1(eth1) entering forwarding state
brI: port 1(eth0) entering forwarding state
brL: port 1(eth2) entering forwarding state
brB: port 1(wlan0) entering disabled state
brB: port 1(wlan0) entering learning state
brB: port 1(wlan0) entering forwarding state
brT: starting userspace STP failed, starting kernel STP
it87: Found IT8726F chip at 0xe80, revision 3
ACPI: I/O resource it87 [0xe85-0xe86] conflicts with ACPI region HHHV [0xe86-0xe86]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
ip_tables: (C) 2000-2006 Netfilter Core Team
device vnet0 entered promiscuous mode
brI: port 2(vnet0) entering learning state
device vnet1 entered promiscuous mode
brE: port 2(vnet1) entering learning state
device vnet2 entered promiscuous mode
brD: port 1(vnet2) entering learning state
device vnet3 entered promiscuous mode
brB: port 2(vnet3) entering learning state
device vnet4 entered promiscuous mode
brD: port 2(vnet4) entering learning state
device vnet5 entered promiscuous mode
brI: port 3(vnet5) entering learning state
brI: port 2(vnet0) entering forwarding state
brE: port 2(vnet1) entering forwarding state
brD: port 1(vnet2) entering forwarding state
brB: port 2(vnet3) entering forwarding state
brD: port 2(vnet4) entering forwarding state
brI: port 3(vnet5) entering forwarding state
kvm: emulating exchange as write
brB: port 1(wlan0) entering disabled state
brB: port 1(wlan0) entering learning state
brB: port 1(wlan0) entering forwarding state
XFS mounting filesystem dm-8
Ending clean XFS mount for filesystem: dm-8
XFS mounting filesystem dm-9
Ending clean XFS mount for filesystem: dm-9
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
XFS mounting filesystem dm-9
Ending clean XFS mount for filesystem: dm-9
CE: hpet2 increasing min_delta_ns to 15000 nsec
device vnet6 entered promiscuous mode
brI: port 4(vnet6) entering learning state
brI: port 4(vnet6) entering forwarding state
brI: port 4(vnet6) entering disabled state
device vnet6 left promiscuous mode
brI: port 4(vnet6) entering disabled state
device vnet6 entered promiscuous mode
brI: port 4(vnet6) entering learning state
brI: port 4(vnet6) entering forwarding state

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Very bad Speed with Virtio-net
  2010-01-07 10:52 Very bad Speed with Virtio-net Benjamin Schweikert
@ 2010-01-07 11:21 ` Riccardo Veraldi
  2010-01-08 20:10   ` Thomas Fjellstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Riccardo Veraldi @ 2010-01-07 11:21 UTC (permalink / raw)
  To: Benjamin Schweikert; +Cc: kvm, Andrea Chierici

I have similar results, like yours, using CentOS 5.4 x86_64
I do not think it is possible to gain more than this right now... or 
better I wish it could be possible

If you can get better result please let me know

Rick

Benjamin Schweikert wrote:
> Hello everybody,
> this is my first post on a mailing list, so i hope everything works fine.
>
> My host is a AMD X2 4850e with a 64bit Gentoo (unstable). I have 
> tested qemu-kvm 0.11, 0.12.x and the git version from the 6. jan.
> I created my own bridges, so i dont need the option from libvirt. I 
> bridged a 1 Gb lan card for my VMs. When I use the virtio net driver,
> i get something about 200-300 mbit form my desktop to one if my VMs. 
> If iI use the e1000 driver instead of the virtio I get about
> 500 - 600 mbit.
> I tested this with the following kernels:
> Host: 2.6.31.6, 2.6.32.1, 2.6.32.2
> Guests: 2.6.26, 2.6.30, 2.6.32 (debian)
> 2.6.32 (gentoo)
>
> Here is a default result, virtio vs. e1000:
>
> iperf -c 192.168.0.3 -w 512k -l 512k
> ------------------------------------------------------------
> Client connecting to 192.168.0.3, TCP port 5001
> TCP window size:   256 KByte (WARNING: requested   512 KByte)
> ------------------------------------------------------------
> [  3] local 192.168.0.2 port 52968 connected with 192.168.0.3 port 5001
> [ ID] Interval       Transfer     Bandwidth
> [  3]  0.0-10.0 sec    438 MBytes    267 Mbits/sec
>
>
> iperf -c 192.168.0.3 -w 512k -l 512k
> ------------------------------------------------------------
> Client connecting to 192.168.0.3, TCP port 5001
> TCP window size:   256 KByte (WARNING: requested   512 KByte)
> ------------------------------------------------------------
> [  3] local 192.168.0.2 port 52995 connected with 192.168.0.3 port 5001
> [ ID] Interval       Transfer     Bandwidth
> [  3]  0.0-10.0 sec    602 MBytes    505 Mbits/sec
>
> Any ideas what this could be? I attach a dmesg output of my host.
> Thx.
>
> Ben


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Very bad Speed with Virtio-net
  2010-01-07 11:21 ` Riccardo Veraldi
@ 2010-01-08 20:10   ` Thomas Fjellstrom
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Fjellstrom @ 2010-01-08 20:10 UTC (permalink / raw)
  To: kvm; +Cc: Riccardo Veraldi, Benjamin Schweikert, Andrea Chierici

On Thu January 7 2010, Riccardo Veraldi wrote:
> I have similar results, like yours, using CentOS 5.4 x86_64
> I do not think it is possible to gain more than this right now... or
> better I wish it could be possible
> 
> If you can get better result please let me know

I get 600-800Mbits/s via virtio, the actual speed depends on the direction 
of traffic.. And if I setup the guest as the iperf server, and the host as 
the client, I get upwards of 1.2Gbits/s.

With some tweaking it might improve throughput, but might harm latency and 
such, and none of my guests need anywhere near that kind of throughput, but 
do appreciate lower latency, so I'm keeping it as it is :)

> Rick
> 
> Benjamin Schweikert wrote:
> > Hello everybody,
> > this is my first post on a mailing list, so i hope everything works
> > fine.
> >
> > My host is a AMD X2 4850e with a 64bit Gentoo (unstable). I have
> > tested qemu-kvm 0.11, 0.12.x and the git version from the 6. jan.
> > I created my own bridges, so i dont need the option from libvirt. I
> > bridged a 1 Gb lan card for my VMs. When I use the virtio net driver,
> > i get something about 200-300 mbit form my desktop to one if my VMs.
> > If iI use the e1000 driver instead of the virtio I get about
> > 500 - 600 mbit.
> > I tested this with the following kernels:
> > Host: 2.6.31.6, 2.6.32.1, 2.6.32.2
> > Guests: 2.6.26, 2.6.30, 2.6.32 (debian)
> > 2.6.32 (gentoo)
> >
> > Here is a default result, virtio vs. e1000:
> >
> > iperf -c 192.168.0.3 -w 512k -l 512k
> > ------------------------------------------------------------
> > Client connecting to 192.168.0.3, TCP port 5001
> > TCP window size:   256 KByte (WARNING: requested   512 KByte)
> > ------------------------------------------------------------
> > [  3] local 192.168.0.2 port 52968 connected with 192.168.0.3 port 5001
> > [ ID] Interval       Transfer     Bandwidth
> > [  3]  0.0-10.0 sec    438 MBytes    267 Mbits/sec
> >
> >
> > iperf -c 192.168.0.3 -w 512k -l 512k
> > ------------------------------------------------------------
> > Client connecting to 192.168.0.3, TCP port 5001
> > TCP window size:   256 KByte (WARNING: requested   512 KByte)
> > ------------------------------------------------------------
> > [  3] local 192.168.0.2 port 52995 connected with 192.168.0.3 port 5001
> > [ ID] Interval       Transfer     Bandwidth
> > [  3]  0.0-10.0 sec    602 MBytes    505 Mbits/sec
> >
> > Any ideas what this could be? I attach a dmesg output of my host.
> > Thx.
> >
> > Ben
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Thomas Fjellstrom
tfjellstrom@shaw.ca

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-08 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 10:52 Very bad Speed with Virtio-net Benjamin Schweikert
2010-01-07 11:21 ` Riccardo Veraldi
2010-01-08 20:10   ` Thomas Fjellstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.