All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Strange scheduling behaviour
@ 2017-11-22 16:10 Cédric Perles
  2017-11-22 16:46 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Cédric Perles @ 2017-11-22 16:10 UTC (permalink / raw)
  To: xenomai

Hi,

I’m working on an iMX6 based board with NXP kernel 4.1.15.
I would like to understand why latency max returned by cyclictest
increases from 20µs to 100µs when dohell accesses to USB.

Since i-pipe tracer refuses to work, I used ftrace to record cobalt,
scheduling and irq events. Here is what I see on kernelshark:

As expected, cyclictest has 1 xenomai thread per core (I can see them on
/proc/xenomai/sched/threads) that wakes up periodically after a 200µs
nanosleep.

Sometimes, the wake up seems to be delayed (400µs instead of 200µs)
because of an USB irq treatment followed by a call to usb-storage.
Other times, the wake up seems to be delayed (400µs instead of 200µs) by a
Linux call to ktimersoft, rcu and cat (see
https://drive.google.com/file/d/18-B3WO2QH7PvBzJrt9tK5-TXvAkDxTPn/view?usp
=sharing)

Is it normal to delay a xenomai task wake up because of a Linux interrupt
(I expected ipipe to act as a shield) ?
How a simple Linux "cat" can delay a xenomai wake up ?

Regards,

Cédric.


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

end of thread, other threads:[~2017-11-23 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-22 16:10 [Xenomai] Strange scheduling behaviour Cédric Perles
2017-11-22 16:46 ` Philippe Gerum
2017-11-23 14:35   ` Cédric Perles
2017-11-23 14:44     ` Philippe Gerum

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.