From: Avi Kivity <avi@redhat.com>
To: "Fischer, Anna" <anna.fischer@hp.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Network I/O performance
Date: Wed, 13 May 2009 10:23:02 +0300 [thread overview]
Message-ID: <4A0A7556.4070406@redhat.com> (raw)
In-Reply-To: <0199E0D51A61344794750DC57738F58E66BBF927A9@GVW1118EXC.americas.hpqcorp.net>
Fischer, Anna wrote:
> I am running KVM with Fedora Core 8 on a 2.6.23 32-bit kernel. I use the tun/tap device model and the Linux bridge kernel module to connect my VM to the network. I have 2 10G Intel 82598 network devices (with the ixgbe driver) attached to my machine and I want to do packet routing in my VM (the VM has two virtual network interfaces configured). Analysing the network performance of the standard QEMU emulated NICs, I get less that 1G of throughput on those 10G links. Surprisingly though, I don't really see CPU utilization being maxed out. This is a dual core machine, and mpstat shows me that both CPUs are about 40% idle. My VM is more or less unresponsive due to the high network processing load while the host OS still seems to be in good shape. How can I best tune this setup to achieve bes
t possible performance with KVM? I know there is virtIO and I know there is PCI pass-through, but those models are not an option for me right now.
>
How many cpus are assigned to the guest? If only one, then 40% idle
equates to 100% of a core for the guest and 20% for housekeeping.
If this is the case, you could try pinning the vcpu thread ("info cpus"
from the monitor) to one core. You should then see 100%/20% cpu load
distribution.
wrt emulated NIC performance, I'm guessing you're not doing tcp? If you
were we might do something with TSO.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2009-05-13 7:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 0:28 Network I/O performance Fischer, Anna
2009-05-13 7:23 ` Avi Kivity [this message]
2009-05-13 15:56 ` Fischer, Anna
2009-05-17 21:14 ` Avi Kivity
2009-05-19 1:30 ` Herbert Xu
2009-05-19 4:53 ` Avi Kivity
2009-05-19 7:18 ` tun/tap and Vlans (was: Re: Network I/O performance) Lukas Kolbe
2009-05-19 7:45 ` tun/tap and Vlans Avi Kivity
2009-05-19 19:46 ` Lukas Kolbe
2009-05-20 10:25 ` Fischer, Anna
2009-05-20 10:38 ` Avi Kivity
2009-05-19 21:22 ` Does KVM suffer from ACK-compression as you increase the number of VMs? Andrew de Andrade
2009-05-20 10:15 ` Network I/O performance Fischer, Anna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0A7556.4070406@redhat.com \
--to=avi@redhat.com \
--cc=anna.fischer@hp.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox