From: Dor Laor <dor.laor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mike <mike-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Strange network behaviour
Date: Wed, 05 Dec 2007 11:17:38 +0200 [thread overview]
Message-ID: <47566CB2.9060706@qumranet.com> (raw)
In-Reply-To: <47566A0B.8040105-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 10831 bytes --]
Mike wrote:
> Hello Lynn,
>
> I'm using a bridge, which is configured in my /etc/network/interfaces
> like this:
> auto br0
> iface br0 inet static
> address 195.24.77.169
> netmask 255.255.255.0
> gateway 195.24.77.1
> bridge_ports eth0
> bridge_stp off
> bridge_maxwait 5
>
> an I have a file called qemu-ifup in /etc which has the following content:
> #!/bin/sh
> /sbin/ifconfig $1 0.0.0.0 promisc up
> /usr/sbin/brctl addif br0 $1
> sleep 2
>
> Every guest has it's own tap device, atm tap0 - tap4 are in use.
> Those peaks are coming after +/- 10 mins (not always the same time,
> sometimes after 5 mins, it changes). Within this time, the guests have
> normal pings.
>
>
>
It might be related to swapping (the host swaps guest pages).
Please check the ram size used by the guest.
Can you re-run the test with a single test or with disabling the swapping?
Thanks,
Dor.
> Lynn Kerby schrieb:
>
>> Hi Mike,
>>
>> Glad to hear that your networks are up now, but what are you using to
>> connect/bridge them? Those response times are horrible across the
>> board!
>>
>> All my VMs are connected to my internal network via a bridge on the
>> host through their tap interfaces and a few lucky machines share
>> another bridge that is on my DMZ with static IPs. I think the
>> network bridge method I use is based on some stuff I picked up a few
>> years ago when working with the UML virtualization stuff. I see sub
>> millisecond ping responses in both directions and to all VMs (usually
>> I've got 3 or 4 active, soon to expand to a few more).
>>
>> My HOST config is similar though I've got a only 4GB of memory and
>> I'm still running KVM-52 modules. My guests are Ubuntu 7.10, Fedora
>> 8, and FreeBSD 6.2 at the moment with Mint4.0 and JeOS on the drawing
>> board.
>>
>> Lynn Kerby
>> San Martin, CA
>>
>> On Dec 4, 2007, at 2:44 PM, Mike wrote:
>>
>>
>>
>>> Hello,
>>> I already spoke to Izik Eidus. He told me to publish the results to
>>> the
>>> problem at the mailinglist.
>>>
>>> Some time ago I wrote to the kvm-devel mailinglist that I had a
>>> problem
>>> with my guests' networking dying.
>>> I got the hint to change the network card emulation. That worked.
>>>
>>> Now I noticed a strange behaviour.
>>> I have a gameserver running in a guest os. No problems on performance
>>> side, really fast.
>>> The only thing, when I make a ping test after unspecific time
>>> periods I
>>> get this: (this peaks are even there if the gameserver isn't running)
>>>
>>> Reply from 195.24.77.170: bytes=32 time=36ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=123ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=98ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=116ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=241ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=72ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=382ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=135ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=397ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=647ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=857ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=1156ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=692ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=604ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=188ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=39ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=46ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=39ms TTL=57
>>>
>>> This ping peaks are on *all* guests I'm currently running.
>>> I did a ping test the same time to the Host, with this result:
>>>
>>> Reply from 195.24.77.169: bytes=32 time=38ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=39ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=38ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=40ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=37ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.169: bytes=32 time=33ms TTL=57
>>>
>>> As you can see, no peaks.
>>> Example of start command from a guest:
>>> kvm -hda apache.img -hdb apache_storage.img -m 512 -boot c -net
>>> nic,vlan=0,macaddr=00:16:3e:00:00:01,model=rtl8139 -net tap -nographic
>>> -daemonize
>>>
>>> Here the pings from the guest started with the command line listed
>>> above:
>>>
>>> Reply from 195.24.77.171: bytes=32 time=37ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=37ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=97ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=60ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=186ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=363ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=368ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=972ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=673ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=1133ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=1198ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=1881ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=2341ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=2401ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=2006ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=2638ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=3590ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=383ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.171: bytes=32 time=34ms TTL=57
>>>
>>> So I tried disabling kvm when starting a guest.
>>> and here the guest *with* -no-kvm in the command line:
>>>
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=36ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=36ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=37ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=38ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=35ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=37ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=33ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>> Reply from 195.24.77.170: bytes=32 time=34ms TTL=57
>>>
>>> The other guest, without -no-kvm have the ping peaks. Also here, no
>>> ping
>>> peaks from the host.
>>> Server load is really really low at the moment of the tests.
>>>
>>> Maybe you have an idea where this peaks are coming from?
>>> I'm using KVM-55 on Ubuntu 7.10 server with Kernel Linux A050
>>> 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 x86_64 GNU/Linux.
>>> My CPU is an AMD Athlon 64 X2 5600+ (Dual Core) with 8GByte of RAM.
>>>
>>> Greetings from Luxembourg.
>>> Mike Weimichkirch
>>>
>>> ----------------------------------------------------------------------
>>> ---
>>> SF.Net email is sponsored by: The Future of Linux Business White Paper
>>> from Novell. From the desktop to the data center, Linux is going
>>> mainstream. Let it simplify your IT future.
>>> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
>>> _______________________________________________
>>> kvm-devel mailing list
>>> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>>
>>>
>> -------------------------------------------------------------------------
>> SF.Net email is sponsored by: The Future of Linux Business White Paper
>> from Novell. From the desktop to the data center, Linux is going
>> mainstream. Let it simplify your IT future.
>> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
>> _______________________________________________
>> kvm-devel mailing list
>> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>
>>
>>
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell. From the desktop to the data center, Linux is going
> mainstream. Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
>
[-- Attachment #1.2: Type: text/html, Size: 11667 bytes --]
[-- Attachment #2: Type: text/plain, Size: 309 bytes --]
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next prev parent reply other threads:[~2007-12-05 9:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 22:44 Strange network behaviour Mike
[not found] ` <4755D859.4090805-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 7:53 ` Lynn Kerby
[not found] ` <52FC3F66-4055-4C6C-9920-8FE4C6BD2CCA-br2HoPxSX4msTnJN9+BGXg@public.gmane.org>
2007-12-05 9:06 ` Mike
[not found] ` <47566A0B.8040105-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 9:17 ` Dor Laor [this message]
[not found] ` <47566CB2.9060706-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-05 9:42 ` Mike
2007-12-05 9:46 ` Izik Eidus
2007-12-05 10:29 ` Avi Kivity
[not found] ` <47567D6D.8060802-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-05 10:39 ` Mike
[not found] ` <47567FC7.9040106-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 10:43 ` Avi Kivity
[not found] ` <475680E8.4060508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-05 11:22 ` Mike
[not found] ` <475689E0.5020901-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 11:46 ` Uri Lublin
2007-12-05 13:18 ` Avi Kivity
[not found] ` <4756A538.1050303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-05 14:13 ` Mike
[not found] ` <4756B1F6.5080102-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 15:56 ` Avi Kivity
[not found] ` <4756CA29.5030501-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-05 17:21 ` Mike
[not found] ` <4756DE36.2020502-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.org>
2007-12-05 18:05 ` Simon Gao
[not found] ` <4756E86B.8050402-g4dUTk+gKbW4mfPA/iJWtA@public.gmane.org>
2007-12-05 19:49 ` Lynn Kerby
2007-12-05 10:55 ` Pelle
[not found] ` <475683A6.5050900-5JapdU7xTciEVqv0pETR8A@public.gmane.org>
2007-12-05 12:39 ` Avi Kivity
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=47566CB2.9060706@qumranet.com \
--to=dor.laor-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=mike-kcIQ9yavhvsV/sYkb9DZNQ@public.gmane.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