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: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] event TRC_MEM_PAGE_GRANT_TRANSFER
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Tue, 24 Apr 2007 17:35:18 +0100
Cc: Ashish Gupta <ashishgup@xxxxxxxxx>
Delivery-date: Tue, 24 Apr 2007 09:34:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fcc5876b0704231631j5cf1713dqaa3f5caf9b3e7182@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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> 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!

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

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