All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ray Bryant <raybry@sgi.com>
To: Andi Kleen <ak@suse.de>
Cc: Andreas Schwab <schwab@suse.de>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
	lse-tech <lse-tech@lists.sourceforge.net>,
	holt@sgi.com, Dean Roe <roe@sgi.com>, Brian Sumner <bls@sgi.com>,
	John Hawkes <hawkes@tomahawk.engr.sgi.com>
Subject: Re: [Lse-tech] scalability of signal delivery for Posix Threads
Date: Mon, 22 Nov 2004 18:56:34 +0000	[thread overview]
Message-ID: <41A23662.40305@sgi.com> (raw)
In-Reply-To: <20041122165425.GG21861@wotan.suse.de>

Andi Kleen wrote:
> On Mon, Nov 22, 2004 at 05:51:59PM +0100, Andreas Schwab wrote:
> 
>>Andi Kleen <ak@suse.de> writes:
>>
>>
>>>At least in traditional signal semantics you have to call sigaction
>>>or signal in each signal handler to reset the signal. So that 
>>>assumption is not necessarily true.
>>
>>If you use sigaction then you get POSIX semantics, which don't have this
>>problem.
> 
> 
> It's just a common case where Ray's assumption is not true.
> 
> -Andi
> 

True enough.  And in that case the design that I was describing wouldn't
make sigaction() that much more expensive since if you are not in the POSIX
thread environment (more precisely, the thread was not created with
CLONE_SIGHAND) each thread has its own sighand structure and the "global" 
locking mechanisum I had proposed would only require the taking of one 
additional lock.

However, special casing ITIMER_PROF is also a reasonable avenue of approach.
The performance monitor code can also deliver signals to user space when
a sampling buffer overflows, and this can have the same kind of scaling
problem as ITIMER_PROF.  I'll have to do a little research to figure out
how exactly that works, but that signal (SIGIO?) would also be a candidate
for special casing on our platform.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

WARNING: multiple messages have this Message-ID (diff)
From: Ray Bryant <raybry@sgi.com>
To: Andi Kleen <ak@suse.de>
Cc: Andreas Schwab <schwab@suse.de>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
	lse-tech <lse-tech@lists.sourceforge.net>,
	holt@sgi.com, Dean Roe <roe@sgi.com>, Brian Sumner <bls@sgi.com>,
	John Hawkes <hawkes@tomahawk.engr.sgi.com>
Subject: Re: [Lse-tech] scalability of signal delivery for Posix Threads
Date: Mon, 22 Nov 2004 12:56:34 -0600	[thread overview]
Message-ID: <41A23662.40305@sgi.com> (raw)
In-Reply-To: <20041122165425.GG21861@wotan.suse.de>

Andi Kleen wrote:
> On Mon, Nov 22, 2004 at 05:51:59PM +0100, Andreas Schwab wrote:
> 
>>Andi Kleen <ak@suse.de> writes:
>>
>>
>>>At least in traditional signal semantics you have to call sigaction
>>>or signal in each signal handler to reset the signal. So that 
>>>assumption is not necessarily true.
>>
>>If you use sigaction then you get POSIX semantics, which don't have this
>>problem.
> 
> 
> It's just a common case where Ray's assumption is not true.
> 
> -Andi
> 

True enough.  And in that case the design that I was describing wouldn't
make sigaction() that much more expensive since if you are not in the POSIX
thread environment (more precisely, the thread was not created with
CLONE_SIGHAND) each thread has its own sighand structure and the "global" 
locking mechanisum I had proposed would only require the taking of one 
additional lock.

However, special casing ITIMER_PROF is also a reasonable avenue of approach.
The performance monitor code can also deliver signals to user space when
a sampling buffer overflows, and this can have the same kind of scaling
problem as ITIMER_PROF.  I'll have to do a little research to figure out
how exactly that works, but that signal (SIGIO?) would also be a candidate
for special casing on our platform.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

  reply	other threads:[~2004-11-22 18:56 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 15:51 scalability of signal delivery for Posix Threads Ray Bryant
2004-11-22 15:51 ` Ray Bryant
2004-11-22 16:07 ` Matthew Wilcox
2004-11-22 19:49   ` [Lse-tech] " Ray Bryant
2004-11-22 19:49     ` Ray Bryant
2004-11-22 19:53     ` Andi Kleen
2004-11-22 19:53       ` Andi Kleen
2004-11-22 16:22 ` [Lse-tech] " Andi Kleen
2004-11-22 16:22   ` Andi Kleen
2004-11-22 16:51   ` Andreas Schwab
2004-11-22 16:51     ` Andreas Schwab
2004-11-22 16:54     ` Andi Kleen
2004-11-22 16:54       ` Andi Kleen
2004-11-22 18:56       ` Ray Bryant [this message]
2004-11-22 18:56         ` Ray Bryant
2004-11-22 19:22       ` Ray Bryant
2004-11-22 19:22         ` Ray Bryant
2004-11-22 17:23   ` Philip J. Mucci
2004-11-22 17:23     ` Philip J. Mucci
2004-11-22 21:26   ` Boehm, Hans
2004-11-22 21:26     ` Boehm, Hans
2004-11-22 21:34     ` Andi Kleen
2004-11-22 21:34       ` Andi Kleen
2004-12-01 22:53       ` Brent Casavant
2004-12-01 22:53         ` Brent Casavant
2004-11-22 21:27   ` Rick Lindsley
2004-11-22 21:27     ` Rick Lindsley
2004-11-22 23:39     ` Ray Bryant
2004-11-22 23:39       ` Ray Bryant
2004-11-22 23:01   ` Boehm, Hans
2004-11-22 23:01     ` Boehm, Hans
2004-11-22 17:19 ` Robin Holt
2004-11-22 17:19   ` Robin Holt
2004-11-22 19:25   ` Ray Bryant
2004-11-22 19:25     ` Ray Bryant
2004-11-23 20:42   ` Ray Bryant
2004-11-23 20:42     ` Ray Bryant

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=41A23662.40305@sgi.com \
    --to=raybry@sgi.com \
    --cc=ak@suse.de \
    --cc=bls@sgi.com \
    --cc=hawkes@tomahawk.engr.sgi.com \
    --cc=holt@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lse-tech@lists.sourceforge.net \
    --cc=roe@sgi.com \
    --cc=schwab@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.