<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hello,<br>
I have trouble with the network performance inside my virtual machines.<br>
<br>
My KVM-Host machine is connected to a 10Gbit Network. All interfaces are
configured to a mtu of 4132. On this host I have no problems and I can use the
full bandwidth:<br>
<br>
# iperf -c 10.10.80.100 -w 65536 -p 12345 -t 60 -P4<br>
[ ID] Interval Transfer Bandwidth<br>
[ 4] 0.0-60.0 sec 18.8 GBytes 2.69 Gbits/sec<br>
[ 5] 0.0-60.0 sec 15.0 GBytes 2.14 Gbits/sec<br>
[ 6] 0.0-60.0 sec 19.3 GBytes 2.76 Gbits/sec<br>
[ 3] 0.0-60.0 sec 15.1 GBytes 2.16 Gbits/sec<br>
[SUM] 0.0-60.0 sec 68.1 GBytes 9.75 Gbits/sec<br>
<br>
<br>
Inside a virtual machine don't reach this result:<br>
<br>
# iperf -c 10.10.80.100 -w 65536 -p 12345 -t 60 -P 4<br>
[ ID] Interval Transfer Bandwidth<br>
[ 3] 0.0-60.0 sec 5.65 GBytes 808 Mbits/sec<br>
[ 4] 0.0-60.0 sec 5.52 GBytes 790 Mbits/sec<br>
[ 5] 0.0-60.0 sec 5.66 GBytes 811 Mbits/sec<br>
[ 6] 0.0-60.0 sec 5.70 GBytes 816 Mbits/sec<br>
[SUM] 0.0-60.0 sec 22.5 GBytes 3.23 Gbits/sec<br>
<br>
I only can use 3,23Gbits of 10Gbits. I use the virtio driver for all of my vms,
but I have also tried to use the e1000 nic device instead.<br>
<br>
With starting the iperf performance test on multiple vms simultaneously I can
use the full bandwidth of the kvm host's interface. But only one vm can't use
the full bandwith. Is this a known limitation, or can I improve this
performance?<br>
<br>
Does anyone have an idea how I can improve my network performance? It's very
important, because I want to use the network interface to boot all vms via AOE
(ATA over Ethernet).<br>
<br>
If I mount a harddisk via AOE inside a vm I get only this results:<br>
Write |CPU |Rewrite |CPU |Read |CPU<br>
102440 |10 |51343 |5 |104249 |3<br>
<br>
On the KVM Host I get those results on a mouted AOE Device:<br>
Write |CPU |Rewrite |CPU |Read |CPU<br>
205597 |19 |139118 |11 |391316 |11<br>
<br>
If I mount the AOE Device directly on the kvm-host and put a virtual
harddisk-file in it I got the following results inside a vm using this
harddisk-file:<br>
Write |CPU |Rewrite |CPU |Read |CPU<br>
175140 |12 |136113 |24 |599989 |29<br>
<br>
<br>
<o:p></o:p></p>

<p class=MsoNormal>Here more details about my environment:<br>
<br>
KVM Version:<br>
QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008
Fabrice Bellard<br>
0.12.3+noroms-0ubuntu9<br>
<br>
KVM Host Kernel:<br>
2.6.32-22-server #36-Ubuntu SMP Thu Jun 3 20:38:33 UTC 2010 x86_64 GNU/Linux<br>
<br>
KVM Host OS:<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 10.04 LTS<br>
Release: 10.04<br>
Codename: lucid<br>
<br>
KVM Guest Kernel:<br>
2.6.32-22-server #36-Ubuntu SMP Thu Jun 3 20:38:33 UTC 2010 x86_64 GNU/Linux<br>
<br>
KVM Guest OS:<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 10.04 LTS<br>
Release: 10.04<br>
Codename: lucid<br>
<br>
I would feel very happy if someone can help to solve my problem!<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Best regards<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>