public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: systemtap@sources.redhat.com
Subject: Re: MAXACTION exceeded error while using systemtap
Date: Wed, 28 Dec 2005 21:13:00 -0000	[thread overview]
Message-ID: <20051228203839.GA2065@redhat.com> (raw)
In-Reply-To: <20051228164538.GA3709@dmt.cnet>

Hi -

> I think that SystemTap needs some method to periodically (or when
> memory pressure arrives) dump the parts of the array to userspace
> via relayfs. [...]

There are two separate issues here: data transfer to user space, and
the production of that data.

For purposes of transfer, systemtap can stream to userspace using
relayfs or procfs buffers.  The choice of channel is picked at
translation time with an option to the stap(1) program.

The production of that data is to me a more interesting issue.  As
systemtap was designed to support purposes well beyond simple dumping
of bulk trace data, it does not consider trace collection into
automagically drained buffer arrays as its primitive.  Rather, it
provides means for a script programmer to accumulate, derive
information, perform filtering/aggregation/analysis, and when/if
necessary, send ultimately interesting results to userspace.

So, the next question is how one would best emulate the LTT style of
buffered tracing with this more expressive system.  One approach is
what is already demonstrated with some of our scripts - to have
timer-based script routines that sort/dump/clear array pieces.  Of
course, one could also perform this sort/dump/clear idiom right inline
with data collection points, or within a handler of a hypothetical new
"this systemtap array memory is running low" event.  Or one could
enqueue trace data right to the output stream (call "printf"), not
accumulating any within systemtap arrays, and then use userspace
postprocessing scripts to do the analysis.

So, there are lots of options.

- FChE

  parent reply	other threads:[~2005-12-28 20:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 21:56 Stone, Joshua I
2005-12-06 22:11 ` Frank Ch. Eigler
2005-12-07 20:53   ` Martin Hunt
2005-12-07 21:09     ` Frank Ch. Eigler
2005-12-07 22:29       ` Martin Hunt
2005-12-07 23:07         ` Frank Ch. Eigler
2005-12-08  8:55           ` Martin Hunt
2005-12-08 12:52             ` James Dickens
2005-12-08 13:57               ` Frank Ch. Eigler
2005-12-28 19:06                 ` Marcelo Tosatti
2005-12-28 20:12                   ` Tom Zanussi
2005-12-28 20:38                     ` Marcelo Tosatti
2005-12-28 21:13                   ` Frank Ch. Eigler [this message]
2005-12-08 13:37             ` Frank Ch. Eigler
  -- strict thread matches above, loose matches on Subject: below --
2005-12-08 17:50 Stone, Joshua I
2005-12-06 20:41 Stone, Joshua I
2005-12-06 20:55 ` Frank Ch. Eigler
2005-12-06 16:40 Badari Pulavarty
2005-12-06 16:59 ` Frank Ch. Eigler
2005-12-07  1:10   ` Badari Pulavarty
2005-12-07 15:21     ` William Cohen
2005-12-07 16:37       ` Badari Pulavarty
2005-12-06 17:01 ` Hien Nguyen

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=20051228203839.GA2065@redhat.com \
    --to=fche@redhat.com \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=systemtap@sources.redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).