Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-06-04 Thread Philippe Gerum
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 pa

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Gilles Chanteperdrix wrote: Philippe Gerum wrote: > What I suggested was to let people create normal threads using > pthread_create (likely conforming to the SCHED_OTHER policy), then use > the redirected pthread_setschedparam syscall (i.e. always appl

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Jan Kiszka
Philippe Gerum wrote: > Gilles Chanteperdrix wrote: >> Philippe Gerum wrote: >> > What I suggested was to let people create normal threads using > >> pthread_create (likely conforming to the SCHED_OTHER policy), then use >> > the redirected pthread_setschedparam syscall (i.e. always applied >> t

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: > What I suggested was to let people create normal threads using > pthread_create (likely conforming to the SCHED_OTHER policy), then use > the redirected pthread_setschedparam syscall (i.e. always applied to the > current thread) to promot

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > What I suggested was to let people create normal threads using > pthread_create (likely conforming to the SCHED_OTHER policy), then use > the redirected pthread_setschedparam syscall (i.e. always applied to the > current thread) to promote them as Xenomai shadows, but

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: > > What about keeping SCHED_RR as the default scheduling policy and > > requiring users to manually select SCHED_NORMAL in thread creation > > attributes in order to create hybrid threads with pthread_create ? > > > > No objection a prior

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: > > 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 sc

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > > What about keeping SCHED_RR as the default scheduling policy and > > requiring users to manually select SCHED_NORMAL in thread creation > > attributes in order to create hybrid threads with pthread_create ? > > > > No objection a priori, but what would this buy us?

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Philippe Gerum
Gilles Chanteperdrix wrote: Philippe Gerum wrote: > 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

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > 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

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-21 Thread Philippe Gerum
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 pa

Re: [Xenomai-core] [RFC] shadow threads with prio 0 / SCHED_NORMAL

2006-04-20 Thread Philippe Gerum
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 pa