Skip to contentSkip to conversation

Performance monitoring question

Xenomai Mathew Benson 2 participants 3 messages Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

I'm using the native skin. I understand there are things you can do to cause a user space task to fall back to the normal Linux scheduler. How do I know if this has happened? Will RT functions like semaphores fail with an incorrect mode failure? Can I register a callback to be notified?

I'm asking because I added code to my project fully expecting it to kick it back to normal scheduler or cause timers to fail, but nothing. Everything still seems to be working just fine. Specifically, I'm making ioctl calls to access a webcam. So what can I do to verify that my tasks really are running on the rt scheduler?

Sent from my Packard Bell 386

#1 lore raw
Quoted 4 lines · Mathew Benson

I'm using the native skin. I understand there are things you can do to cause a user space task to fall back to the normal Linux scheduler. How do I know if this has happened? Will RT functions like semaphores fail with an incorrect mode failure?

No, Xenomai automatically switches user-space tasks to primary or secondary mode when needed.

Quoted 8 lines

Can I register a callback to be notified?

I'm asking because I added code to my project fully expecting it to kick it back to normal scheduler or cause timers to fail, but nothing. Everything still seems to be working just fine. Specifically, I'm making ioctl calls to access a webcam. So what can I do to verify that my tasks really are running on the rt scheduler?

See:
http://xenomai.org/2014/06/finding-spurious-relaxes/

Signature · 1 line
					    Gilles.
#2 lore raw

Perfect. Thanks.

Sent from my Packard Bell 386

Quoted 23 lines · Gilles Chanteperdrix
Quoted 4 lines · Mathew Benson

I'm using the native skin. I understand there are things you can do to cause a user space task to fall back to the normal Linux scheduler. How do I know if this has happened? Will RT functions like semaphores fail with an incorrect mode failure?

No, Xenomai automatically switches user-space tasks to primary or secondary mode when needed.

Quoted 8 lines

Can I register a callback to be notified?

I'm asking because I added code to my project fully expecting it to kick it back to normal scheduler or cause timers to fail, but nothing. Everything still seems to be working just fine. Specifically, I'm making ioctl calls to access a webcam. So what can I do to verify that my tasks really are running on the rt scheduler?

See:
http://xenomai.org/2014/06/finding-spurious-relaxes/

Signature · 1 line
                       Gilles.