9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@gmx.de
To: 9fans@9fans.net
Subject: Re: [9fans] some pcc questions
Date: Fri, 20 Apr 2012 18:24:05 +0200	[thread overview]
Message-ID: <432d773181a969cc40ac1f0552204f64@rei2.9hal> (raw)
In-Reply-To: <CAK8RtFouE=21a0XZJmSK=QPqU3Xq7R69-w3WN+oAnQqPUUdWAA@mail.gmail.com>

Attach: /rc/bin/tap

if something hangs, theres a good opportunity to figure
out what is happening by looking in what state the
various processes of the horde are using acid or acid -k.

this does require knowledge of wich process waits for whom.

for simple await() relationship, it is easy. there are
various pstree programs arround for plan9.

for process pipelines, i'v written the program tap (attached
to this mail) that walks the filedescriptor table of a
process, checks for a pipe and then searches /proc for other
processes having the other end of that pipe open doing this
recursively.

deadlocked fileservers are harder to track down.

if these hang conditions are reproducable, you might also try
stuff like rons ratrace.

good luck :)

--
cinap



  reply	other threads:[~2012-04-20 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-20 16:01 Jens Staal
2012-04-20 16:24 ` cinap_lenrek [this message]
2012-04-20 16:29   ` cinap_lenrek
2012-04-20 17:31   ` Charles Forsyth
2012-04-23  6:30 ` Jens Staal
2012-04-23 13:23   ` Comeau At9Fans
2012-04-23 13:19 ` Comeau At9Fans
     [not found] ` <CAE9W7-gU72RNgbs6Pcuxp5KEtXBUsApZNGzNiEpvTgLtbL7wjw@mail.gmail.c>
2012-04-23 13:42   ` erik quanstrom
2012-04-23 14:37     ` Bakul Shah

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=432d773181a969cc40ac1f0552204f64@rei2.9hal \
    --to=cinap_lenrek@gmx.de \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).