public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: fche@redhat.com (Frank Ch. Eigler)
To: systemtap@sources.redhat.com
Subject: function("*") probing
Date: Mon, 20 Nov 2006 21:12:00 -0000	[thread overview]
Message-ID: <y0m3b8du911.fsf@ton.toronto.redhat.com> (raw)


Hi -

Thanks to a well-working kexec/kdump setup on fc5, fc6, and rhel5,
I've made some progress in working out the reasons for the crashes we
encounter when indiscriminately probing kernel functions.  Often, the
stack traces include multiple nested faults, sometimes bottoming out
on some random error, sometimes on a hung lock.

One problem is an old bugaboo: reentrancy.  It turns out that many of
the locking primitives we sparingly use, which ideally should be
inlined, in fact turn into function calls.  The main bunch of problems
occurs when the locking-related kernel functions (_read_lock and many
pals) are themselves probed.  Putting these into the translator
blacklist makes a big difference.  I'm working on characterizing the
callees of increasingly complex probes, and am considering
blacklisting many of them.  I was under the impression that kprobes
tries to detect & prevent such reentrancy but perhaps that too needs
some work.

Another problem is our lack of self-throttling.  It is related to bug
#2685 ("skip probes on insufficient stack") but is more like the linux
nmi-watchdog looking at /proc/interrupts and what dtrace has: a way of
detecting excessive probing load, and consequential probe skipping or
outright session shutdown.  I just created bug #3545 for this part.

- FChE

                 reply	other threads:[~2006-11-20 21:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=y0m3b8du911.fsf@ton.toronto.redhat.com \
    --to=fche@redhat.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).