All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] SCHED_RR
@ 2008-12-05 15:07 Jan Kiszka
  2008-12-05 15:20 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2008-12-05 15:07 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

Hi Gilles,

here is a trivial test case on my desk that points to SCHED_RR issues of
the POSIX skin: simple pthread_create with an attribute block that has
SCHED_RR set, but neither SCHED_RR nor the priority reach the new thread.

The way the scheduling policy and parameters get to that user space
thread leads via __real_pthread_setschedparam after
__pse51_thread_create. This triggers do_setsched_event in shadow.c. But
here we filter out all policies except for SCHED_FIFO. So neither the
priority nor the required XNRRB flag make it to the target therefore.

Even worse, we are running aperiodic timer mode, so this would not have
worked anyway due to the scheduler limitations. Fortunately, it turned
out that the customer is fine with SCHED_FIFO as well, but the broken
priorities and/or lacking error codes on creation are annoying + the
fact that it likely wouldn't work even with periodic timer mode.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-12-06 17:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 15:07 [Xenomai-core] SCHED_RR Jan Kiszka
2008-12-05 15:20 ` Gilles Chanteperdrix
2008-12-05 16:41   ` Jan Kiszka
2008-12-05 16:50     ` Gilles Chanteperdrix
2008-12-05 16:53     ` Gilles Chanteperdrix
2008-12-05 17:41       ` Jan Kiszka
2008-12-05 18:06         ` Gilles Chanteperdrix
2008-12-06 10:32           ` Jan Kiszka
2008-12-06 17:27             ` Gilles Chanteperdrix

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.