This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] Sending packet at fixed rate really bad performance

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Sending packet at fixed rate really bad performance
From: Marco Tizzoni <elibus@xxxxxxxxx>
Date: Sun, 27 Sep 2009 19:26:49 +0200
Delivery-date: Sun, 27 Sep 2009 10:27:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=qoVhtSEAM4SKEuPB8oinZHCUp4alRF3OlWo8M0ad+uk=; b=Xqlw7Truo2hESln6ZfadwTJ8Te+bVxYv8VP6F5QSOAZLWGkfY/A0cDCQEMBhG6xB12 8xgbC07IuFk3D0mrxIDRbqjc06E0t37AxvL057cBfaoat3fedb9mUCpgTuUc8nbCDsh6 70hh2ZA5dqonENdOSqtvmA9iJlEb5XPA3rQgw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=kv5JqJef52FQpmwTai+VFCc/4Lhs1UQEwvI4BjPxqJRJ+gv+4+X0sdbIinXYzLM4CD OKqc1iUN/wEoXe0seicMPmRqhHOMWUbyq0wbkDkSWx5SCyBxHTxwDeSkZRSdSaS30gf4 MonzGzjlhch4CM8Z4TA9dUyIA6kVTlIu4d0Oc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,
I'm doing some tests about i/o performance and cpu overhead in dom0.
I've coded a small tool that can sends UDP packets at fixed rate or
flood. While sending packet at fixed rate I'm experiencing performance
problem, related to how Xen  handle signal, I guess.

On my laptop (Core2 duo P8700), with no Xen running, I can send
packets at a rate of 20k, 40k, 60k, 80k/s achieving an actual packet
rate per second pretty near to the requested rate.

On Xen (dom0 with no guest running and no load - Athlon 64 dual core
4000+ ), the performance are really bad.
Here what happen:

Requested | Actual
10             | 10.03
100           | 100.05
200           | 200.04
500           | 250.04
1000         | 250.18
10000        | 247.49
20000        | 250.26
40000        | 250.24

It seems impossibile to go over 250 packets/second, but in flood
configuration (send packet as fast as possible) the actual rate is
quite higher, 39k packets/second about.

The main difference is in the code. Flood loop as been implemented like this:
for (;;)

while the fixed rate use setitimer to wake up send_pkt() when needed.

Any idea of why this happen?


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>