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] event TRC_MEM_PAGE_GRANT_TRANSFER

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] event TRC_MEM_PAGE_GRANT_TRANSFER
From: "Ashish Gupta" <ashishgup@xxxxxxxxx>
Date: Tue, 24 Apr 2007 13:08:20 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Apr 2007 11:07:00 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OYZ24K8REeipLVoeFE42UIVtj101ZHoCheFL6D+5OcccJq3OpMlX3X/dYqKeSLOrprWWL5WKF/q4bkyW7IeSuk4ICp7wzFdYfgNE1fROKMhFuhdr0Oz7ewvMm10CyA5BaBLXwP87my+oEL0HXofLL+q8qDm8eY+v8Rt3ENKD9eM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=fOZ3vLdX7E18ueYiUvc0AZXBsyg2E/nkWfYGAv7f5koJv6cwURioQ74ZzhfgTFv3nKQyqkSKIllTUKt4UQPK9zPKEpM7SAqNc3OCP5Y0vYs2Rj3vl/psLoUJ9+Q0TliC5w5o7qqXUCzwnCrNhACzVCEVdlJqDPwx0IxRMZMd/Xw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200704241735.18521.mark.williamson@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fcc5876b0704231631j5cf1713dqaa3f5caf9b3e7182@xxxxxxxxxxxxxx> <200704241735.18521.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Mark !  Actually the goal here is to remain black box....I am working on generic online techniques for a project, not really for a specific application.

Can't I also add tracing in the code that actually does the packet IO and disk IO in xen ? I need to figure out stats for both incoming and outgoing traffic. I have never really modified or played with the xen code so kind of warming up to what's really needed instead of getting lost in the code.

As for native Linux tools, if I run them in dom0 , will that be able to tell me all about disk and  network IO for the guest ? I am not allowed to run any thing inside domU to meet the black box requirement.

cheers,
Ashish

On 4/24/07, Mark Williamson <mark.williamson@xxxxxxxxxxxx> wrote:
> I am using xentrace to understand performance bottlenecks for an
> application inside domU.
> My question is how can I distinguish between network IO events and disk IO
> events using xentrace ?

I don't know if there are trace events currently generated for grant copy
operations - if not, you could add them and use these to judge the amount of
incoming network traffic.

Outgoing network traffic and disk IO are harder to distinguish since they both
just use temporary sharing grants.  It might be easier to use some sort of IO
monitoring tools within dom0 and the domU in question, similarly to as you
would on a native Linux system.

> A second related question is can I figure out disk queue waiting times and
> serving times (and similarly for the network) to figure out any bottlenecks
> or any external stress on these resources that may be causing the guest
> machine to be slowing down ?

Again, it's worth taking a look at native Linux tools.  XenMon may provide
some feedback but I imagine you might have already tried this?

For more complete profiling, Xenoprof allows you to run oprofile against
multiple domains (and Xen itself) at once).

> I greatly appreciate any advise/insight from fellow members here.

Sorry not to be more specific.

Cheers,
Mark

> cheers,
> Ashish
>
> On 23/1/07 19:31, "Rob Gardner" <rob.gardner@xxxxxx> wrote:
> >*> *
> >*> Grant transfers are no longer used to move network data from netback
> > to* *> netfront (except for backward compatibility with old netfront
> > drivers).* * *
> >* *
> >* Yeah, got that. ;)  Could you explain what mechanisms are currently
> > used* * to move data for net I/O and disk I/O between domains, and in*
> >* particular, can you suggest where in the code I could put trace calls
> > to* * be able to count I/O's? Thanks.*
>
> Everything is done via grant-map/unmap commands as it always was, except
> network receive (netback->netfront) which is done via grant-copy commands
> (one per contiguous fragment of network packet).
>
>  -- Keir



--
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!



--
http://www.cs.northwestern.edu/~agupta
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>