All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Alex Williamson <alex.williamson@hp.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: Re: does anyone run guests for more than 5 minutes?  (virtio-net perf anomaly)
Date: Thu, 5 Mar 2009 21:04:45 -0300	[thread overview]
Message-ID: <20090306000445.GD8820@amt.cnet> (raw)
In-Reply-To: <1236111221.13193.223.camel@bling>

On Tue, Mar 03, 2009 at 01:13:41PM -0700, Alex Williamson wrote:
> It seems like something happens around the 5 minute uptime in the guest
> that causes virtio-net throughput to plummet.  Here's the scenario:
> 
> guest started as:
> 
>         taskset -c 4 /usr/local/bin/qemu-system-x86_64 -hda /dev/sdb -m
>         2048 -vnc :1 -net nic,macaddr=02:00:10:91:73:02,model=virtio
>         -net tap,script=$HOME/bin/null-ifup -serial
>         tcp::1234,server,nowait -mem-path /hugepages/
> 
> null-ifup looks like this:
> 
>         #!/bin/sh
>         /sbin/ifconfig $1 192.168.0.1
>         /sbin/route add -net 192.168.0.0/24 gw 192.168.0.1
> 
> The guest gets a static IP of 192.168.0.2.
> 
> netserver (part of netperf) in the host is pinned to CPU0, which shares
> cache with CPU4 from the above taskset.
> 
> When the guest boots, I run:
> 
>         netperf -c -C -H 192.168.0.1 -t TCP_STREAM -- -m 64k
> 
> This results in ~13.5Gbps (note you won't get close to this if you don't
> get the tasksets correct)
> 
> Wait 5 minutes, retry.  Now I get ~4Gbps.  The only way I can get
> 13.5Gbps again is by rebooting the guest within the same qemu context,
> or of course restarting it completely.
> 
> Any guesses as to what might be going on?  Can anyone reproduce?  I'm
> hoping that I'm doing something dumb, but can't figure out what it is.
> The system is running v2.6.29-rc6-121-g64e7130 in the guest,
> v2.6.29-rc6-123-gbd7b3b4 on the host, kvm module kvm-84-620-g5bffffc and
> userspace kvm-84-95-gea1b668.  Thanks,

Nope. Collect kvm_stat -l before/after the slowdown?


  reply	other threads:[~2009-03-06  0:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 20:13 does anyone run guests for more than 5 minutes? (virtio-net perf anomaly) Alex Williamson
2009-03-06  0:04 ` Marcelo Tosatti [this message]
2009-03-06  4:13   ` Alex Williamson
2009-03-06 15:26     ` Alex Williamson
2009-03-06 17:17       ` Marcelo Tosatti
2009-03-06 17:25         ` Alex Williamson

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=20090306000445.GD8820@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=alex.williamson@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 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.