From: "Michael Kerrisk" <mtk-lkml@gmx.net>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: dan@debian.org, roland@redhat.com, mingo@elte.hu,
linux-kernel@vger.kernel.org, michael.kerrisk@gmx.net
Subject: Re: Process with many NPTL threads terminates slowly on core dump signal
Date: Thu, 13 Oct 2005 10:41:38 +0200 (MEST) [thread overview]
Message-ID: <18436.1129192898@www29.gmx.net> (raw)
In-Reply-To: 434D48FA.FD0439AA@tv-sign.ru
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1323 bytes --]
> Von: Oleg Nesterov <oleg@tv-sign.ru>
> Datum: Wed, 12 Oct 2005 21:33:46 +0400
>
> Michael Kerrisk wrote:
> >
> > Following up (belatedly) from my earlier message, I took Daniel
> > Jacobowitz's suggestion to investigate the result from booting
> > with "profile=2". When running my program (shwon below) on
> > 2.6.14-rc4 to create 100 threads, and sending a core dump signal,
> > the program takes 90 seconds to terminate, and readprofile shows
> > the following:
>
> I think the coredumping code in __group_complete_signal() is bogus
> and what happens is:
[...]
> TIF_SIGPENDING is not cleared, so get_signal_to_deliver() will be
> called again on return to userspace. When all threads will eat their
> ->time_slice, P will return from yield() and kill all threads.
Thanks for investiagting this further.
> Could you try this patch (added to mm tree):
> http://marc.theaimsgroup.com/?l=linux-kernel&m=112887453531139
> ? It does not solve the whole problem, but may help.
>
> Please report the result, if possible.
Thanks. I've applied it to 2.6.14-rc4: this patch does fix the
specific behaviour that my program demonstrates.
What remains to be solved?
Cheers,
Michael
--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
next prev parent reply other threads:[~2005-10-13 8:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-12 17:33 Process with many NPTL threads terminates slowly on core dump signal Oleg Nesterov
2005-10-13 8:41 ` Michael Kerrisk [this message]
2005-10-13 17:18 ` Oleg Nesterov
-- strict thread matches above, loose matches on Subject: below --
2005-09-22 12:13 Michael Kerrisk
2005-09-22 13:10 ` Michael Kerrisk
2005-09-24 15:28 ` Daniel Jacobowitz
2005-10-12 13:34 ` Michael Kerrisk
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=18436.1129192898@www29.gmx.net \
--to=mtk-lkml@gmx.net \
--cc=dan@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.kerrisk@gmx.net \
--cc=mingo@elte.hu \
--cc=oleg@tv-sign.ru \
--cc=roland@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 NNTP newsgroup(s).