From: George Dunlap Subject: Re: Strange network behaviour Date: Tue, 28 Jul 2009 14:03:53 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Marco Tizzoni Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org What's the granularity of your measurement? If, for example, the actual delta between was 1.5ms, but you're only measuring at a 1ms granularity, you'd expect to see something like this: Actual time, measured time 1 , 1 2.5, 3 4 , 4 5.5 , 6 7 , 7 &c -George On Tue, Jul 28, 2009 at 9:21 AM, Marco Tizzoni wro= te: > Hi guys, > I'm doing some tests to understand how credit and sedf schedulers > perform on real-time systems in mixed io and cpu intesive > environments. > During my first test I saw a quite strange behaviour I'm going to describ= e. > > The test has been setup as follow: 1 domain running Linux with default > scheduler setup and one bridged network. Here iperf run as a client > and sends udp packet to an host on the same net with 1Mb/s rate. Dom0 > runs nothing except XenMon. Iperf (server mode) and a tcpdump run on a > non-virtualized host. > > Measuring packets inter occurences, I'd expect to find out a costant > value because of the constant rate at which the packet are sent. It's > not so. > Let say the first packet arrives after 1ms, the second arrives after > 3, the third after 4, the fourth after 6 and so on. The interoccurence > times are: > Packet# =A0 =A0 =A0 =A0 Absolute Time =A0 =A0 =A0 =A0Interoccurence Time > =A01 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01 > =A02 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 3 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A02 > =A03 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 4 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01 > =A04 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 6 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A02 > =A05 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 7 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01 > =A06 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 9 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A02 > ... =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.... > > I tried to shutdown domU and run iperf on dom0, same result. > The last test I made was run iperf on a non-virtualized environment. > And here I got the results I expect: constant interoccurence time. > > Do =A0you have any idea of the reasong why the packet are sent with this > strange rate even if there are no other domains competiting for > resources? > > Thaks, > Marco > On Xen the packet are sent, and then receive > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >