All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Markus.Franke@domain.hid
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] CONFIG_PREEMPT & irqbench
Date: Wed, 14 Feb 2007 13:22:54 +0100	[thread overview]
Message-ID: <45D2FF1E.1080701@domain.hid> (raw)
In-Reply-To: <45D2E86C.2010200@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]

Markus Franke wrote:
> Jan Kiszka wrote:
>> Of course, irqloop runs in *primary* mode to be able to handle the
>> events deterministically. So it is not directly affected by CONFIG_PREEMPT.
> 
> If I start irqloop in User-Mode, a thread is simply created via Linux
> system call pthread_create() which interacts with the
> xeno_irqbench-driver via ioctl(). But then I don't understand why
> irqloop is running in Primary (Xenomai) Mode? Because of the interaction
> with the RTDM-based driver?
> I am just wondering because I can't see something like rt_task_create().

<see Dmitry's reply>

> 
>> Yes, if you have an RT thread that issues syscalls and wishes to have
>> them handled as fast as possible, CONFIG_PREEMPT should be enabled (and
>> CONFIG_XENO_OPT_RPIDISABLE should remain off, maybe you even want to
>> consider CONFIG_XENO_OPT_ISHIELD then). Such RT application designs are
>> tricky to get correct and deterministic, so it's often better to not
>> rely on these properties and rather seek a clear separation of pure RT
>> threads on the one side and Linux syscall issuing non-RT or RT
>> borderline threads (low-prio RT threads that are being switched back and
>> forth between primary and secondary mode) on the other.
> 
> Ok I understand. So native kernel preemption should only provide better
> results if you have realtime-threads issuing linux systemcalls which is
> not really convenient.

It is for sure convenient. But it doesn't take the burden from you to
understand what is happening underneath. That's my point.

> 
>> Shadowed by CONFIG_DEBUG=n likely.
> 
> probably by CONFIG_DEBUG_KERNEL=n

Yep.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

      parent reply	other threads:[~2007-02-14 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14  0:01 [Xenomai-help] CONFIG_PREEMPT & irqbench Markus Franke
2007-02-14  8:53 ` Jan Kiszka
2007-02-14  9:00   ` Jan Kiszka
2007-02-14  9:59     ` Markus Franke
2007-02-14 10:17       ` Jan Kiszka
2007-02-14  9:59   ` Markus Franke
2007-02-14 10:28     ` Jan Kiszka
2007-02-14 10:46       ` Markus Franke
2007-02-14 12:10         ` Dmitry Adamushko
2007-02-14 12:54           ` Markus Franke
2007-02-14 12:22         ` Jan Kiszka [this message]

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=45D2FF1E.1080701@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Markus.Franke@domain.hid \
    --cc=Xenomai-help@domain.hid \
    /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.