All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Gardner <rob.gardner@hp.com>
To: George Dunlap <dunlapg@umich.edu>
Cc: xen-tools@lists.xensource.com, xen-devel@lists.xensource.com
Subject: Re: Hi,something about the xentrace tool
Date: Mon, 19 Jun 2006 11:19:19 -0600	[thread overview]
Message-ID: <4496DC97.5060203@hp.com> (raw)
In-Reply-To: <de76405a0606190702k24196e08ve5f871b0ef5a4cf0@mail.gmail.com>

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

  reply	other threads:[~2006-06-19 17:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-15  7:06 Hi,something about the xentrace tool Ian Pratt
2006-06-15  8:58 ` [Xen-devel] " rickey berkeley
2006-06-15 17:03   ` Rob Gardner
2006-06-15 18:20     ` George Dunlap 
2006-06-15 18:28       ` George Dunlap 
2006-06-15 18:53       ` Rob Gardner
2006-06-19  1:06         ` George Dunlap 
2006-06-19  5:00           ` Rob Gardner
2006-06-19 14:02             ` George Dunlap 
2006-06-19 17:19               ` Rob Gardner [this message]
2006-06-21 19:02                 ` George Dunlap 
2006-06-15 16:41 ` Rob Gardner
  -- strict thread matches above, loose matches on Subject: below --
2006-06-19  7:14 Ian Pratt
2006-06-16 14:11 Ian Pratt
2006-06-16 16:56 ` Rob Gardner
2006-06-11 13:17 rickey berkeley
2006-06-12 15:17 ` George Dunlap 
2006-06-12 15:30 ` Ryan Harper
2006-06-13 17:11   ` rickey berkeley
2006-06-13 17:25     ` Rob Gardner
2006-06-14  3:47       ` NAHieu
2006-06-14 16:06         ` Rob Gardner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4496DC97.5060203@hp.com \
    --to=rob.gardner@hp.com \
    --cc=dunlapg@umich.edu \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-tools@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.