From: John David Anglin <dave.anglin@bell.net>
To: Helge Deller <deller@gmx.de>
Cc: Jeroen Roovers <jer@gentoo.org>, linux-parisc@vger.kernel.org
Subject: Re: systemd real-time signals choices clash with Linux/PARISC available SIGRT range, WAS: fanotify_mark()
Date: Wed, 18 Sep 2013 14:58:26 -0400 [thread overview]
Message-ID: <5239F7D2.80105@bell.net> (raw)
In-Reply-To: <5239F392.60901@gmx.de>
Regarding _NSIG, I realized after I wrote that the number has to be
divisible by 64 because
of the way various words are allocated (one bit per signal). There is no
roundup in the allocation.
We need to tweak the RT max value so we at least 32 RT signals. This
should keep userspace
happy. This will leave a whole bunch of numbers free. So, probably
there wouldn't be a conflict
with the core dump bit.
I had the sense the glibc doesn't need to change because of the way
POSIX specifies
the number of available realtime signals.
Dave
On 9/18/2013 2:40 PM, Helge Deller wrote:
> On 08/27/2013 05:26 PM, John David Anglin wrote:
>> On 8/27/2013 10:46 AM, Jeroen Roovers wrote:
>>> On Mon, 26 Aug 2013 18:37:54 -0400 John David Anglin
>>> <dave.anglin@bell.net> wrote:
>>>
>>>> On 26-Aug-13, at 5:27 PM, Helge Deller wrote:
>>>>>> [1] Sneak preview:
>>>>>> https://bugs.gentoo.org/show_bug.cgi?id=482214
>>>>> Did you already filed this signal-problem upstream as suggested
>>>>> in comment #3
>>>>> (https://bugs.gentoo.org/show_bug.cgi?id=482214#c3)?
>>> Well, there are two ways to resolve this problem, and seeing who
>>> is developing systemd and seeing the generous way the "available"
>>> signal range is used, I'm pretty doubtful about changes there.
> I can see why they wouldn't like to change this again.
> It might break systemd binaries on other existing arches which already
> support systemd.
>
> Anyway, has there been any further upstream discussion?
>
>>> As I said in comment #2, that range could be compacted (a lot) and
>>> then fit easily on any future platform. Since it was a design
>>> choice even reflected in man pages[1] ("[...], SIGRTMIN+29 Sets
>>> the log level to [...]"), I'm very afraid they will not change it
>>> easily.
>>>
>>>> I believe two of the signal numbers come from HP-UX.
>>> #define SIGXCPU 33 #define SIGXFSZ 34
>> The signal numbers for these two signals come from HP-UX but the
>> signals are used by Linux, so I can't see how they can change.
>>> #define SIGSTKFLT 36
>>>
>>> According to [2], SIGSTKFLT isn't used.
>> This signal isn't used by HP-UX but it is used by Linux, so again
>> this can't change.
> changing those would break our binary compatibility...
>
>> Can we change _NSIG to 69 so there are 32 RT signals as on other
>> arches? [Dave followup]: It looks like it needs to be a power of 2.
>> MIPS uses 128.
> 127 seems to be the better choice then... (signal #128 seems to conflict with
> the core dump bit)
>
> So, how should we proceed here?
> If I haven't overlooked something, it seems that changing the parisc kernel
> & glibc is possible.
> Downside is, that people of course need newer kernel/glibc and at least
> systemd recompiled.
> Another downside is that we add more overhead in the signal paths, but I'm not
> sure if this really hurts performance (is signal handling performance-relevant
> at all?).
>
> I can come up with a kernel/glibc patch (which seem to be trivial) if we agree
> to really go that way...
>
> Helge
>
>>> [1] http://www.freedesktop.org/software/systemd/man/systemd.html
>>> [2]
>>> http://h21007.www2.hp.com/portal/download/files/unprot/STK/Linux_STK/impacts/i60.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
John David Anglin dave.anglin@bell.net
next prev parent reply other threads:[~2013-09-18 18:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 13:49 fanotify_mark() Jeroen Roovers
2013-08-13 21:29 ` fanotify_mark() Helge Deller
2013-08-13 22:54 ` fanotify_mark() Jeroen Roovers
2013-08-25 23:46 ` fanotify_mark() Jeroen Roovers
2013-08-26 21:27 ` fanotify_mark() Helge Deller
2013-08-26 22:37 ` fanotify_mark() John David Anglin
2013-08-27 14:46 ` systemd real-time signals choices clash with Linux/PARISC available SIGRT range, WAS: fanotify_mark() Jeroen Roovers
2013-08-27 15:26 ` John David Anglin
2013-08-27 15:52 ` John David Anglin
2013-09-18 18:40 ` Helge Deller
2013-09-18 18:58 ` John David Anglin [this message]
2013-08-27 14:31 ` fanotify_mark() Jeroen Roovers
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=5239F7D2.80105@bell.net \
--to=dave.anglin@bell.net \
--cc=deller@gmx.de \
--cc=jer@gentoo.org \
--cc=linux-parisc@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 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.