Skip to contentSkip to conversation

Can mode switches of one thread effect realtime of other xenomai threads?

DISCUSSION Kristian Rahbek 2 participants 2 messages Feb 4, 2022 – Feb 7, 2022

lore
Share & tools
lore
#0 lore raw

Hello,

We are running Xenomai 3 with Cobalt kernel.
We have a realtime xenomai userspace application (which is driven by a RTDM), it runs with the highest priority and doesn't have any mode switches. Let's call it thread 'A'. Reading the documentation it's unclear to us, if it can have any ill-effects on the realtime performance of thread A, if the process which spawns thread A has other Xenomai threads, which do have mode switches. Is that the case?
What about separate processes with Xenomai threads, if those have switches between primary and secondary mode (MSW's), can that have any effect on the realtime performance of thread A?

Best regards,
Kristian Rahbek

#1 lore raw
Quoted 8 lines · Kristian Rahbek via Xenomai

Hello,

We are running Xenomai 3 with Cobalt kernel.
We have a realtime xenomai userspace application (which is driven by a RTDM), it runs with the highest priority and doesn't have any mode switches. Let's call it thread 'A'. Reading the documentation it's unclear to us, if it can have any ill-effects on the realtime performance of thread A, if the process which spawns thread A has other Xenomai threads, which do have mode switches. Is that the case?
What about separate processes with Xenomai threads, if those have switches between primary and secondary mode (MSW's), can that have any effect on the realtime performance of thread A?

Mode switches are effectively context switches which involve a short uninterruptible section. But in that regard they are not worth than switching between two RT tasks while a third, highest prio task is getting ready.

Jan

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux