All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Performance monitoring question
@ 2014-12-01  4:39 Mathew Benson
  2014-12-01  7:31 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Mathew Benson @ 2014-12-01  4:39 UTC (permalink / raw)
  To: xenomai

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

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

* Re: [Xenomai] Performance monitoring question
  2014-12-01  4:39 [Xenomai] Performance monitoring question Mathew Benson
@ 2014-12-01  7:31 ` Gilles Chanteperdrix
  2014-12-01 12:59   ` Mathew Benson
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-01  7:31 UTC (permalink / raw)
  To: Mathew Benson; +Cc: xenomai

On Sun, Nov 30, 2014 at 10:39:56PM -0600, Mathew Benson wrote:
> 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.

> 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/

-- 
					    Gilles.


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

* Re: [Xenomai] Performance monitoring question
  2014-12-01  7:31 ` Gilles Chanteperdrix
@ 2014-12-01 12:59   ` Mathew Benson
  0 siblings, 0 replies; 3+ messages in thread
From: Mathew Benson @ 2014-12-01 12:59 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org

Perfect.  Thanks.

Sent from my Packard Bell 386

On Dec 1, 2014, at 1:31 AM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:

> On Sun, Nov 30, 2014 at 10:39:56PM -0600, Mathew Benson wrote:
>> 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.
> 
>> 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/
> 
> -- 
>                        Gilles.


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

end of thread, other threads:[~2014-12-01 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-01  4:39 [Xenomai] Performance monitoring question Mathew Benson
2014-12-01  7:31 ` Gilles Chanteperdrix
2014-12-01 12:59   ` Mathew Benson

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.