From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL
Date: Thu, 20 Apr 2006 14:55:27 +0200 [thread overview]
Message-ID: <444784BF.7080603@domain.hid> (raw)
In-Reply-To: <4446B348.10403@domain.hid>
Jan Kiszka wrote:
> Hi,
>
> this is an experimental hack to open the non-rt priority levels of Linux
> to Xenomai shadow threads, i.e. allow shadows to be scheduled under
> SCHED_NORMAL when in secondary mode. The scenario are typical borderline
> threads between RT and non-RT: they share a critical code path with RT
> threads, maybe mutex protected, but they are mostly time-sharing threads
> which do not need SCHED_FIFO for this.
>
> The patch (be careful, quick-hack!) addresses the prio level 0 in the
> ipipe patch, the nucleus/shadow subsystem, and the native skin. A quick
> test with the attached demo showed the expected behaviour so far: no
> lock-up during busy-waiting in secondary mode, prio-boost when holding
> the lock (visible via /proc/xenomai/sched), no obvious side effects.
>
> Any comments? Does this break other things in a subtle way?
>
Normally, the fixes that went in 2.1 regarding the internal
synchronization of the thread hardening/relaxing services should allow
this since we don't care anymore of the underlying Linux scheduling
class. I'm queuing this patch for further testing, but I basically agree
with its purpose, since it's another step toward deep integration with
Linux. Thanks.
--
Philippe.
next prev parent reply other threads:[~2006-04-20 12:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-19 22:01 [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL Jan Kiszka
2006-04-20 12:55 ` Philippe Gerum [this message]
2006-04-21 10:46 ` Philippe Gerum
2006-04-21 15:21 ` Gilles Chanteperdrix
2006-04-21 15:47 ` Philippe Gerum
2006-04-21 16:00 ` Gilles Chanteperdrix
2006-04-21 16:41 ` Philippe Gerum
2006-04-21 17:40 ` Gilles Chanteperdrix
2006-04-21 17:50 ` Philippe Gerum
2006-04-21 18:18 ` Jan Kiszka
2006-04-21 21:40 ` Philippe Gerum
2006-04-21 16:03 ` Jan Kiszka
2006-06-04 17:58 ` 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=444784BF.7080603@domain.hid \
--to=rpm@xenomai.org \
--cc=jan.kiszka@domain.hid \
--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.