From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Alexis Berlemont <berlemont.hauw@domain.hid>,
xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [Xenomai-help] Analogy cmd_write example explanation
Date: Wed, 14 Apr 2010 09:51:33 +0200 [thread overview]
Message-ID: <4BC57405.1080403@domain.hid> (raw)
In-Reply-To: <4BC570A4.1090203@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]
Jan Kiszka wrote:
> Philippe Gerum wrote:
>> On Wed, 2010-04-14 at 01:05 +0200, Jan Kiszka wrote:
>>> Philippe Gerum wrote:
>>>> The steps now:
>>>>
>>>> - we implement the automatic switchback of shadow nrt threads to
>>>> secondary mode, upon return from Xenomai (primary) syscalls. I am
>>>> working on this. The most significant impact is on userland, due to the
>>>> fastsynch support, actually. Kernel-wise, it's rather straightforward.
>>>> The only exception to this would be when the caller owns an exclusive
>>>> resource (like a mutex), in which case the mode downgrade should be
>>>> postponed until the syscall releasing the last resource held returns.
>>> Kernel is clear, but user space sounds indeed interesting. I guess we
>>> need an out-of-band channel to tell the kernel about pending
>>> user-space-only lock ownerships when calling some unrelated syscall. How
>>> does your current approach look like?
>> I want to keep things simple: shadow nrt will go through the syscalls
>> for acquisition/release of owned resources, instead of fastsynchs.
>
> Then I'll have to pick this up as that will very likely create unhappy
> customers. In fact, the majority of our Xenomai threads are nrt (yeah,
> that happens if you convert existing applications).
Hmm, thinking about it again, there not that much to optimize in the
trivial, non-nested locking case (on entry, we already go through the
syscall if we aren't migrated yet, just the release syscall will be
new). I will check what share of our load is nested and would actually
suffer from unconditional syscalls. I just hope there is no issue with
dropping the lazy scheme as that would complicate things in a way I
would not want to go as well.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2010-04-14 7:51 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 15:26 [Xenomai-help] Analogy cmd_write example explanation Daniele Nicolodi
2010-03-12 23:40 ` Alexis Berlemont
2010-03-13 9:28 ` Philippe Gerum
2010-03-13 16:13 ` Alexis Berlemont
2010-03-13 16:33 ` Philippe Gerum
2010-03-13 23:34 ` Alexis Berlemont
2010-03-14 16:34 ` Philippe Gerum
2010-03-15 7:50 ` Jan Kiszka
2010-03-15 23:30 ` Alexis Berlemont
2010-03-16 8:59 ` Jan Kiszka
2010-03-18 20:35 ` Philippe Gerum
2010-03-18 21:14 ` Alexis Berlemont
2010-03-18 21:39 ` Philippe Gerum
2010-04-01 19:47 ` Gilles Chanteperdrix
2010-04-01 21:13 ` Jan Kiszka
2010-04-01 21:22 ` Philippe Gerum
2010-04-01 21:26 ` Jan Kiszka
2010-04-01 21:31 ` Philippe Gerum
2010-04-01 21:36 ` Jan Kiszka
2010-04-01 21:48 ` Philippe Gerum
2010-04-01 21:54 ` Jan Kiszka
2010-04-01 22:00 ` Philippe Gerum
2010-04-01 22:07 ` Jan Kiszka
2010-04-01 22:53 ` Gilles Chanteperdrix
2010-04-01 22:58 ` Jan Kiszka
2010-04-01 23:08 ` Gilles Chanteperdrix
2010-04-02 0:04 ` Jan Kiszka
2010-04-02 10:39 ` [Xenomai-core] " Gilles Chanteperdrix
2010-04-02 11:11 ` Jan Kiszka
2010-04-02 11:14 ` Gilles Chanteperdrix
2010-04-02 11:28 ` Jan Kiszka
2010-04-13 20:41 ` Philippe Gerum
2010-04-13 23:05 ` Jan Kiszka
2010-04-14 7:22 ` Philippe Gerum
2010-04-14 7:37 ` Jan Kiszka
2010-04-14 7:51 ` Jan Kiszka [this message]
2010-04-14 9:04 ` Philippe Gerum
2010-04-14 17:13 ` Gilles Chanteperdrix
2010-04-14 19:35 ` Jan Kiszka
2010-04-14 8:24 ` Gilles Chanteperdrix
2010-04-01 21:24 ` Philippe Gerum
2010-04-01 21:39 ` Jan Kiszka
2010-04-01 21:59 ` Philippe Gerum
2010-04-01 22:12 ` Jan Kiszka
2010-04-01 21:50 ` Jan Kiszka
2010-04-01 21:54 ` Gilles Chanteperdrix
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=4BC57405.1080403@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=berlemont.hauw@domain.hid \
--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.