WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [Xen-users] About profiling xen

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: [Xen-users] About profiling xen
From: Marco Tizzoni <marco.tizzoni@xxxxxxxxx>
Date: Thu, 1 Oct 2009 23:26:05 +0200
Cc: "Fajar A." <fajar@xxxxxxxxx>, Fasiha Ashraf <feehapk@xxxxxxxxxxx>, xen <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 01 Oct 2009 14:26:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=/LIAkeszs46ONYY24ChK98V0NH18DxBYTbOVOAp++sU=; b=hBCWHkD0zMjupanA/9oAixvezJDZv8JfHwUu62Vjl6l/bKOn7q4M6/QKE0YExceQPs kZ797e356QwDN8zfcdI5kdjbMY5UnAiWitydp7gnGYiDAj0S5BphuTHwsreo8NtZlVqd BNizOeYvoX1l7gUDEensLoiYRHQ/keMDxJ13Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=XSiW6L/7sXdy5YPQgfHO8QG5T/euVJViKS6Py4d13iyye7Y+n3srhkW23XvLWdBx9o oBlnEDGC0RlGUML7QgQ0+QAFu8DBqWtrjXsR/Ktbwl3/WCIHhmugfwihs9rplMV1pWWs VjALK8u1CMNSHXGKxEfrJVWE5GrBXD18YyKnY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AC51C48.40203@xxxxxxxx>
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>
References: <196324.1267.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090930063747.GG1434@xxxxxxxxxxx> <f9611b0f0909292340o6a53326aobcd87334d7cfaa6b@xxxxxxxxxxxxxx> <f9611b0f0909300045o55e22378xea270e9873471f1d@xxxxxxxxxxxxxx> <f9611b0f0909300206v53577d1cw300ff6092b8ffede@xxxxxxxxxxxxxx> <4AC3E889.6060407@xxxxxxxx> <f9611b0f0910010035m40949fb3o5efe60469b4466b7@xxxxxxxxxxxxxx> <4AC516EC.3050704@xxxxxxxx> <f9611b0f0910011405h416d2372i3a4c7587b84a3fac@xxxxxxxxxxxxxx> <4AC51C48.40203@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Oct 1, 2009 at 11:16 PM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
> On 10/01/09 14:05, Marco Tizzoni wrote:
>>> The clock*event* mechanism is all about setting up timers to raise events.
>>>
>>> When running paravirtualized, we use Xen-specific versions of both.
>>>
>> Ok.  My problem is granularity. In xen I can't raise events more
>> frequently than 1000/s (with timer set to 1000hz).
>> Net test softwares such as netperf or hping use setitimer to send
>> packet at a fixed rate. On a non-xen box they works fine even  with
>> 100k packets/sec (i.e. 100k alarms/sec). This can be problematic for
>> streaming software and more in general for soft real-time
>> applications.
>> [...]
>> Thanks for your test, I tried and timers work as expected.
>
> OK, good, that takes timers out of the equation.
>
> I guess the problem is the rate at which Xen will context switch between
> two domains.  Hm.
>
> Does anything change if you pin your domains to different cpus?

mmmh, no. I think without a finer timer the problem could not be solved.
For my test application, no problem, I'll use a while() loop with
counters and sched_yeld(),
but, for real application, it could be a serious issue to deal with.

m-

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel