From: Helge Deller <deller@gmx.de>
To: John David Anglin <dave.anglin@bell.net>
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 20:40:18 +0200 [thread overview]
Message-ID: <5239F392.60901@gmx.de> (raw)
In-Reply-To: <521CC531.6020106@bell.net>
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
next prev parent reply other threads:[~2013-09-18 18:40 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 [this message]
2013-09-18 18:58 ` John David Anglin
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=5239F392.60901@gmx.de \
--to=deller@gmx.de \
--cc=dave.anglin@bell.net \
--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 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).