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: Better pagecache statistics ?
Date: Thu, 29 Dec 2005 06:53:00 -0000	[thread overview]
Message-ID: <20051228211314.GA2446@redhat.com> (raw)
In-Reply-To: <20051228013325.GA4144@dmt.cnet>

Hi -

> [...]
> a) nanosecond timekeeping 
> Since the systemtap language does not support "struct" abstraction, but
> simply "long/string/array" types, there is no way to easily return more
> than one value from a function. Is it possible to pass references down
> to functions so as to return more than one value? 

We don't support references (this enables stricter and simpler
checking), nor multiple return values (though we could - suggest a
good syntax for extracting tuple parts!).

> [...]
> For nanosecond timekeeping one needs second/nanosecond tuple (struct
> timespec).

Are you sure you need something beyond the 64-bit signed integers that
systemtap uses for all its numerics?


> b) ERROR: MAXACTION exceeded near identifier 'log' at ttfp_delay.stp:49:3
> The array size is capped to a maximum.

The MAXACTION limit is associated with code execution, not reserved
sizes for arrays (MAXMAPENTRIES ?).  These values can be overridden
from the stap command line using -D.

> Is there any way to configure SystemTap to periodically
> dump-and-zero the arrays? This makes lots of sense to any
> statistical gathering code.

As mentioned in the other message, a script programmer can do this
with several kinds of explicit code.


> c) Hash tables It would be better to store the log entries in a hash
> table, the present script uses the "current" pointer as a key into a
> pair of arrays, [...]

Systemtap arrays *are* associative, and use hash tables.  Consider
using the pid() or tgid() value to index into them.

> And finally, there seems to be a bug which results in _very_ large
> (several seconds) delays - that seems unlikely to really happening.

That is strange, though I recall hearing of vm problems that might
manifest themselves like that.  Or maybe your "current"-pointer based
indexing is unintentionally colliding.  Consider setting extra probe
points deeper down.


- FChE

  parent reply	other threads:[~2005-12-28 21:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1133377029.27824.90.camel@localhost.localdomain>
     [not found] ` <20051201152029.GA14499@dmt.cnet>
2005-12-28 17:08   ` Marcelo Tosatti
2005-12-28 19:21     ` Tom Zanussi
2005-12-29  6:53     ` Frank Ch. Eigler [this message]
     [not found] <1133453411.2853.67.camel@laptopd505.fenrus.org>
     [not found] ` <20051201170850.GA16235@dmt.cnet>
     [not found]   ` <1133457315.21429.29.camel@localhost.localdomain>
     [not found]     ` <1133457700.2853.78.camel@laptopd505.fenrus.org>
     [not found]       ` <20051201175711.GA17169@dmt.cnet>
     [not found]         ` <1133461212.21429.49.camel@localhost.localdomain>
     [not found]           ` <y0md5kfxi15.fsf@tooth.toronto.redhat.com>
     [not found]             ` <1133562716.21429.103.camel@localhost.localdomain>
     [not found]               ` <20051202224645.GB6576@redhat.com>
     [not found]                 ` <1133567206.21429.117.camel@localhost.localdomain>
2005-12-03  1:59                   ` Frank Ch. Eigler

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=20051228211314.GA2446@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).