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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] Hi,something about the xentrace tool

To: George Dunlap <dunlapg@xxxxxxxxx>
Subject: Re: [Xen-devel] Hi,something about the xentrace tool
From: Rob Gardner <rob.gardner@xxxxxx>
Date: 2006年6月19日 11:19:19 -0600
Cc: xen-tools@xxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年6月19日 10:19:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <de76405a0606190702k24196e08ve5f871b0ef5a4cf0@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: <A95E2296287EAD4EB592B5DEEFCE0E9D4BAAAA@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <8061f8830606150158m35f11025t43c3fa962ccd6679@xxxxxxxxxxxxxx> <449192E1.4080808@xxxxxx> <de76405a0606151120m5f333609s126bda4d33e73ef@xxxxxxxxxxxxxx> <4491AC9A.2090906@xxxxxx> <de76405a0606181806y4d08998ua680342c561be6d0@xxxxxxxxxxxxxx> <44962F85.4060005@xxxxxx> <de76405a0606190702k24196e08ve5f871b0ef5a4cf0@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)
George Dunlap wrote:
You misunderstand me. :-) I meant to write out (via DMA) several
pages at a time, straight from the HV trace buffers. The default tbuf
size in xentrace is 20 pages, so if (as the plan is) xentrace would be
notified when it would be half full, we could easily write out 10
pages in one transaction. The tbuf size could be increased if DMA
setup/teardown overhead were an issue on that scale.
...
Some of my recent traces have been on the order of 10 gigabytes. I
haven't done much to modify xentrace, because I'm not worried about
the trace overhead at this point. But I've had to pull some tricks to
get my analysis tools to run in anything like a reasonable amount of
time.
I am glad to discover that I misunderstood you. ;) But I am still having trouble understanding what the actual problem is, or even if one exists. If you have a trace that is 10 gigabytes, that's several days (maybe weeks) worth of trace records, depending on the rate they're generated. A memory to memory copy of 10 gigabytes will take mere seconds on any modern machine, and amortized over a few days, I don't see how it's worth any work to further reduce that or eliminate it. Is the system so cpu-bound that the loss of a few seconds over several days is that serious? Even compared to the disk I/O to write out 10 gb, which is probably several minutes, I don't see how the memory copies are a big deal. Perhaps kernel buffer cache effects are noticeable, but again at the data rate you're talking about, the cache will only get completely purged once every 5 or 10 hours. If your analysis tools take a long time to run, I'd guess it's because of the size of the data, not because system resources are being hogged by xentrace; If you are generating that much data, maybe you consider methods to reduce it. Take a look the the trace code (xen/common/trace.c) and you'll see that there is a facility to mask out tracing of certain events, classes of events, and cpu's. You might use this to drastically reduce the number of trace records generated. For instance, if you are not interested in tracing I/O related events, you don't want to be storing TRC_MEM records, which account for a large percentage of the trace records generated on a busy system.
Rob
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] [PATCH] Blktap: Userspace file-based image support. (RFC) , NAHieu
Next by Date: Re: [Xen-devel] [PATCH] Blktap: Userspace file-based image support. (RFC) , Andrew Warfield
Previous by Thread: Re: [Xen-devel] Hi,something about the xentrace tool , George Dunlap
Next by Thread: Re: [Xen-devel] Hi,something about the xentrace tool , George Dunlap
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /