From: Ed L Cashin <ecashin@uga.edu>
To: linux-kernel@vger.kernel.org
Cc: Jim Houston <jim.houston@attbi.com>
Subject: Re: signal queue resource - Posix timers
Date: Thu, 29 May 2003 01:26:45 -0400 [thread overview]
Message-ID: <87y90q1fxm.fsf@cs.uga.edu> (raw)
In-Reply-To: <20030529014608.GX8978@holomorphy.com> (William Lee Irwin III's message of "Wed, 28 May 2003 18:46:08 -0700")
William Lee Irwin III <wli@holomorphy.com> writes:
> On Wed, May 28, 2003 at 02:56:15PM -0400, Jim Houston wrote:
>> In the pre-allocated approach, the timer code would allocate a
>> sigqueue structure as part of the timer_create. I would add new
>> send_sigqueue() and send_group_sigqueue() which would accept the
>> pointer to the pre-allocated sigqueue structure rather than a siginfo
>> pointer. There would also be changes to the code which dequeues the
>> siginfo structure to recognize these preallocated sigqueue structures.
>> In the case of Posix timers using a preallocated siqueue entry also
>> makes handling overruns easier. If the timer code finds that its
>> sigqueue structure is still queued, it can simply increment the
>> overrun count.
>> The reservation approach would keep a pre-allocated pool of sigqueue
>> structures and a reservation count. The timer_create would reserve
>> a sigqueue entry which would be place in the pool until it is needed.
>> I wonder if anyone else is interested in this problem.
>
> Well, I've never run into it and it sounds really obscure, but I agree
> in principle that it's better to return an explicit error to userspace
> than to silently fail, at least when it's feasible (obviously the kernel
> can be beaten to death with events faster than it can deliver them, so
> it won't always be feasible).
Why couldn't this be a configurable per-user thing like RSS rlimits?
--
--Ed L Cashin PGP public key: http://noserose.net/e/pgp/
next prev parent reply other threads:[~2003-05-29 5:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 18:56 signal queue resource - Posix timers Jim Houston
2003-05-28 22:01 ` Ulrich Drepper
2003-05-28 23:14 ` Jim Houston
2003-05-29 2:16 ` William Lee Irwin III
2003-05-29 1:46 ` William Lee Irwin III
2003-05-29 5:26 ` Ed L Cashin [this message]
2003-05-29 16:07 ` Timothy Miller
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=87y90q1fxm.fsf@cs.uga.edu \
--to=ecashin@uga.edu \
--cc=jim.houston@attbi.com \
--cc=linux-kernel@vger.kernel.org \
/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