All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Eric Eric <ericrebates@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Scheduling questions...
Date: Fri, 25 Mar 2011 09:21:10 +0100	[thread overview]
Message-ID: <1301041270.2079.8.camel@domain.hid> (raw)
In-Reply-To: <AANLkTingRPWqG1SZAaNs4TKeJFXicZWGqmL2A1rT8vrf@domain.hid>

On Thu, 2011-03-24 at 19:47 -0400, Eric Eric wrote:
> Hello, I've been reading through some of the documentation and have a
> few questions regarding scheduling:
> 
> - API docs say that rt_task_set_mode can allow a task to undergo
> round-robin scheduling.  This seems to imply that we can have an
> environment of mixed round-robin and FIFO task scheduling.  Is this
> correct?  If so, what is the scheduling relationship between tasks
> running in FIFO and RR modes?

RR are FIFO threads within the same priority group.

> 
> - I am concerned about Linux starvation.  For example, suppose a
> misbehaving RT task spins and burns CPU indefinitely (watchdog
> notwithstanding).  I would still like to preempt this task and allow
> Linux to run for up to some maximum time (say up to 30mS every 200mS).
>  So, if using RR scheduling, is there a way to use rt_task_slice to
> allocate time to Linux?  Is there a Linux shadow thread that I can
> allocate time to?

Xenomai implements sporadic server scheduling. See SCHED_SPORADIC,
usable with int pthread_setschedparam_ex().

> 
> Thank you.
> 
> - Eric
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




  reply	other threads:[~2011-03-25  8:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 23:47 [Xenomai-help] Scheduling questions Eric Eric
2011-03-25  8:21 ` Philippe Gerum [this message]
2011-03-25 19:48   ` Eric Eric
2011-03-25 19:59     ` Philippe Gerum
2011-03-25 20:43       ` Eric Eric
2011-03-25 20:52         ` Philippe Gerum
2011-03-25 20:53           ` Philippe Gerum
2011-03-25 21:28           ` Eric Eric
2011-03-30  4:54             ` Philippe Gerum
2011-03-30 18:37               ` Eric Eric
2011-03-30 21:43                 ` Gilles Chanteperdrix
2011-03-31  8:54                 ` Philippe Gerum
2011-03-25 10:17 ` 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=1301041270.2079.8.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=ericrebates@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.