All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Fast-sync and auto-relaxed priority 0 threads
@ 2011-05-12 12:07 Henri Roosen
  2011-05-12 12:50 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Henri Roosen @ 2011-05-12 12:07 UTC (permalink / raw)
  To: xenomai

Hi,

We are using the auto-relax patches on top of the latest Xenomai 2.5.6
release. This means our priority 0 task is in secondary domain most of
the time.

We've seen a lot of domain switching and gatekeeper activity when this
task is acquiring a mutex which is not locked. Of course an
auto-relaxed prio 0 thread will do domain switching more often, but in
this case because we have fast sync enabled I would expect it doesn't
have to make a kernel call thus no switching..

Looking into the code I've found that at rt_mutex_acquire_inner there
is explicitly a check for secondary domain. This must have been done
while xnsynch_fast_acquire can only be called from primary domain. Is
that the case?? In the implementation behind xnsynch_fast_acquire I
cannot find a reason why it cannot be called from secondary domain.
Can anyone comment on this?

It would save a lot of overhead for our priority 0 task if we could
have fast sync in secondary mode. All suggestions are welcome!

Thanks,
Henri.

Xenomai: 2.5.6 + auto-relax patches.
Linux-kernel: 2.6.32.15
Platform: x86


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

end of thread, other threads:[~2011-05-12 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 12:07 [Xenomai-help] Fast-sync and auto-relaxed priority 0 threads Henri Roosen
2011-05-12 12:50 ` Gilles Chanteperdrix
2011-05-12 14:44   ` Henri Roosen

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.