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] [Patch] support of lock profiling in Xen

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] support of lock profiling in Xen
From: George Dunlap <dunlapg@xxxxxxxxx>
Date: Fri, 9 Oct 2009 11:35:33 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 09 Oct 2009 03:35:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=HpHiyNlAvPbmX7m7s68sC8xiiULHWSfzuPXCHic+uGE=; b=ppsu4KGPMzj37TRaQ8Qjp3qvG+w+KTNnH0tayEhsDva5SHc3ATMHaXvOQ1oRkGl5ry IKvbgu7gkuK1ZRD5WJAF65xwwVlbHy7N/JNP0vz41thZQEr1DNjO3Ty0cgq6L3W9tjvY 7CZyTfj93jgOpO/Sv2PfHhpk+jz65PQJunTDk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RWGk+Q2IAHSkY9++LBpe6M/kDVAkPDlsb24E+C6Mx7WSu+RAJk062Oz9i8WE079G2Q c6zTf5arD+fLdWJukrr8esH1Lqq0NpTwF4j8X+1GPVwQ2q71exQQL8c1ZjcZtwDwWhUi +cFIoygtWw+x6l97VFgbX/wBxkU6DvaLC379U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4ACDA516.6030800@xxxxxxxxxxxxxx>
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: <C6F35F94.16D90%keir.fraser@xxxxxxxxxxxxx> <4ACDA516.6030800@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Oct 8, 2009 at 9:38 AM, Juergen Gross
<juergen.gross@xxxxxxxxxxxxxx> wrote:
> It helped me a lot for narrowing down my performance problem with a 8 vcpu
> BS2000 system (this was the main reason I made the patch).
> Finding such a problem in xentrace is quite a bit of work. xentrace produced
> over 500 MB of data in 30 seconds, while reading the xenlockprof output
> revealed the bottleneck in seconds.

Minor point, but IIRC you identified the shadow lock as the problem;
but the shadow lock covers a lot of code.  Did this patch alone tell
you what *aspect* of the shadow code was causing the problem?  That's
what xentrace was designed to do. :-)

I agree, however, that for a lot of uses, xentrace isn't the right
tool.  It does introduce a lot of memory and disk overhead.  Having
this kind of lock profiling, and sample-based profiling like oprofile
or gprof for Xen is the right tool for cases where a low-overhead
aggregate measurement is all that's necessary.

Xentrace excels when aggregates don't give you enough information, and
you need to drill down into specific sequences of events, or see how
things change over time.  It's also useful for situations where it's
inconvenient to run a test iteratively as you add aggregate
information (for instance, if it's a customer running the test or
you're looking at a problem 3-hours into a 6-hour test).  Instead of
having Xen make new aggregates, you can use the analysis tool to make
new aggregates as you need them.

 -George

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