From: Jan Kiszka <jan.kiszka@web.de>
To: Philippe Gerum <rpm@xenomai.org>,
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: [Xenomai] registry daemon mangement (was: Re: [Xenomai-git] Philippe Gerum: copperplate: add configuration tunable for registry moint point)
Date: Fri, 02 Jan 2015 23:05:23 +0100 [thread overview]
Message-ID: <54A71623.8090906@web.de> (raw)
In-Reply-To: <54A6FD20.5020601@xenomai.org>
On 2015-01-02 21:18, Philippe Gerum wrote:
>>>> I'm thinking of the scenario that two unrelated but unnamed sessions are
>>>> started, specifically by different users. In the worst case, user A
>>>> starts off the sysregd for anon, B joins later and reuses it therfore,
>>>> but then A decides to terminate all its processes, including the daemon.
>>>>
>>>
>>> sysregd deals with such dependencies, A is not in charge of terminating
>>> sysregd.
>>
>> That is not the point. If the user (or the system) decides to kill all
>> processes of it, it's dead. Also for user B. anon doesn't work well for
>> the multi-user case. It should rather be "personalized", run in a
>> per-user namespace.
>>
>
> If the user decides to forcibly kill a central daemon it does not own,
> which is not even attached its own process group anymore, then well, I'm
> afraid any option will have a problem. The same way, a client process
> running FUSE services won't kill the thread that serves the FUSE
> requests internally.
Actually, the user doesn't have to run amok: Try starting a xenomai
process that forks off the daemon, then log out from the very same
session - bang, the daemon is killed. Independent of parallel users.
But even if that would work, letting a user-instantiated daemon manage a
system-wide resource (the anon session) is a design mistake IMHO. This
only works reliably as long as *all* users behave coordinated and
carefully. That should be avoided if somehow possible.
>
> So no, this failure scenario makes no sense. It is no different than
> asking sysregd to be resilient to machine shutdown.
If the machine shuts down, all the users of the daemon are dead anyway -
what is your point? But that is not true if only a single user
terminates something, willingly or unwillingly.
>
>>>
>>>> Either the concept is truly multi-user capable, or we can go back to
>>>> managing the registry daemons centrally.
>>>
>>> How do we do this in the Mercury case where we don't want to depend on
>>> any kernel add-on/driver for exposing internal process data, but we do
>>> want to expose it through a file system? In addition, how do we do this
>>> without copying data around?
>>
>> This has nothing to do with kernel extensions. It's a matter of managing
>> central user space daemons for shared services - like shared sessions.
>>
>
> I noticed that you did not care about answering my basic questions about
> your proposed design. The implementation is there, and works as
> advertised, including for "anon". Nothing more than advertised, nothing
> less. And of course, yes it does make a lot of sense to ask about the
> intervention of some central code in the kernel or not. You seem to be
> Cobalt-centric in your reasoning: fair enough, but the same
> implementation has to work when we don't provide any kernel bits too.
Here we are discussing the design of the sysregd user space daemon.
Please explain how the kernel influences which user runs the daemon (and
where it puts its fuse mounts)? I'm really not looking into cobalt
aspects here.
>
> I understand you are looking for a killer argument to make your point
> about changing /mnt to /var/run, which seems to imply now that you would
> want the entire registry to be rewritten, for the sake of making your
> argument fly.
This is clearly over-interpreting my point. Gilles brought up the topic
of mulit-user scenarios, and that made me think about mount-point
unrelated aspects of the daemon. I renamed the thread therefore.
>
> If you think sysregd is badly designed or implemented after actual
> testing, please come with facts, but doing so in a separate discussion
> would likely have more impact.
That there is one corner remaining which is not yet round doesn't make
the whole design bad - where did I say this?
BTW, your change that kicked off this thread broke the registry-enabled
build. I've pushed a fix.
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150102/4b01c063/attachment.sig>
next prev parent reply other threads:[~2015-01-02 22:05 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.787.1420134217.6101.xenomai-git@xenomai.org>
2015-01-02 10:28 ` [Xenomai] [Xenomai-git] Philippe Gerum: copperplate: add configuration tunable for registry moint point Jan Kiszka
2015-01-02 10:58 ` Philippe Gerum
2015-01-02 11:11 ` Jan Kiszka
2015-01-02 12:51 ` Gilles Chanteperdrix
2015-01-02 13:05 ` Jan Kiszka
2015-01-02 13:41 ` Gilles Chanteperdrix
2015-01-02 15:05 ` Lennart Sorensen
2015-01-02 15:10 ` Gilles Chanteperdrix
2015-01-02 15:22 ` Gilles Chanteperdrix
2015-01-02 15:47 ` Lennart Sorensen
2015-01-02 18:06 ` Gilles Chanteperdrix
2015-01-02 12:56 ` Gilles Chanteperdrix
2015-01-02 13:06 ` Jan Kiszka
2015-01-02 13:29 ` Philippe Gerum
2015-01-02 13:24 ` Jan Kiszka
2015-01-02 14:02 ` Philippe Gerum
2015-01-02 13:56 ` Jan Kiszka
2015-01-02 14:16 ` Gilles Chanteperdrix
2015-01-02 15:06 ` Gilles Chanteperdrix
2015-01-02 15:59 ` Jan Kiszka
2015-01-02 18:03 ` Gilles Chanteperdrix
2015-01-02 18:07 ` Philippe Gerum
2015-01-02 18:09 ` Jan Kiszka
2015-01-02 19:20 ` Philippe Gerum
2015-01-02 19:15 ` Jan Kiszka
2015-01-02 19:31 ` Philippe Gerum
2015-01-02 19:28 ` Jan Kiszka
2015-01-02 19:55 ` Philippe Gerum
2015-01-02 19:49 ` Jan Kiszka
2015-01-02 20:18 ` Philippe Gerum
2015-01-02 22:05 ` Jan Kiszka [this message]
2015-01-02 22:17 ` [Xenomai] registry daemon mangement (was: Re: [Xenomai-git] Philippe Gerum: copperplate: add configuration tunable for registry moint point) Gilles Chanteperdrix
2015-01-03 18:36 ` [Xenomai] registry daemon mangement Philippe Gerum
2015-01-03 20:09 ` Jan Kiszka
2015-01-03 20:55 ` Philippe Gerum
2015-01-04 13:03 ` Jan Kiszka
2015-01-03 19:40 ` [Xenomai] [Xenomai-git] Philippe Gerum: copperplate: add configuration tunable for registry moint point Gilles Chanteperdrix
2015-01-03 20:17 ` Jan Kiszka
2015-01-03 22:25 ` Gilles Chanteperdrix
2015-01-07 18:14 ` Jan Kiszka
2015-01-12 10:42 ` Gilles Chanteperdrix
2015-01-12 11:19 ` Jan Kiszka
2015-01-12 11:34 ` Gilles Chanteperdrix
2015-01-12 11:59 ` Jan Kiszka
2015-01-12 14:35 ` Philippe Gerum
2015-01-12 14:34 ` Jan Kiszka
2015-01-13 9:22 ` Philippe Gerum
2015-01-13 9:11 ` Jan Kiszka
2015-01-13 9:45 ` Philippe Gerum
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=54A71623.8090906@web.de \
--to=jan.kiszka@web.de \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.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.