public inbox for rda@sourceware.org
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: rda@sources.redhat.com
Subject: Re: [RFC] Improve performance of multi-threaded debugging
Date: Sat, 17 Sep 2005 00:19:00 -0000	[thread overview]
Message-ID: <m3ek7ownra.fsf@alligator.red-bean.com> (raw)
In-Reply-To: <20050916134939.5ad3fe5f@ironwood.lan> (Kevin Buettner's message of "Fri, 16 Sep 2005 13:49:39 -0700")


Kevin Buettner <kevinb@redhat.com> writes:
> On Fri, 16 Sep 2005 13:19:57 -0700
> Jim Blandy <jimb@redhat.com> wrote:
>
>> 
>> Kevin Buettner <kevinb@redhat.com> writes:
>> > The only fly in the ointment is that the signal based event model only
>> > knows about thread creation, but not about thread death.  So it won't
>> > catch thread death until some new thread is created.  I'm not sure
>> > what the implications of this are in practice.
>> 
>> Even in the signal-based model, we're attached to all the threads, so
>> we should get a wait status via lwp_pool_waitpid.  Isn't that working?
>
> It probably does, but do not know for certain.
>
> I saw that the thread list was getting fetched on every status check.  My
> assumption was that there was some good reason for this to occur and revised
> the code so that it would only happen when so informed by the event model.
> What I did not investigate is whether the thread refetch ever really needs
> to happen at all.

Well, that's a bigger question than the one I was thinking about.  You
wrote that you were concerned about missing thread death events, and I
was saying that I thought that wouldn't happen.

It would be nice to look at the larger question of whether we need to
re-transfer the list at all, or whether we could just let TD_CREATE
and TD_DEATH maintain it.  Something makes me a little uncomfortable
with an "edge-sensitive" model over a "level-sensitive" model, but I
can't see anything wrong with it.

  reply	other threads:[~2005-09-17  0:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 22:04 Kevin Buettner
2005-09-14 22:09 ` Daniel Jacobowitz
2005-09-14 22:31   ` Kevin Buettner
2005-09-16 20:13 ` Jim Blandy
2005-09-16 20:20 ` Jim Blandy
2005-09-16 20:49   ` Kevin Buettner
2005-09-17  0:19     ` Jim Blandy [this message]
2005-11-04 21:16 ` Kevin Buettner

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=m3ek7ownra.fsf@alligator.red-bean.com \
    --to=jimb@redhat.com \
    --cc=kevinb@redhat.com \
    --cc=rda@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).