All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
@ 2011-04-06 16:18 krishna m
  2011-04-06 17:56 ` Gilles Chanteperdrix
  2011-04-06 18:33 ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: krishna m @ 2011-04-06 16:18 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]


I ported the backfire tool in the OSADL site [https://www.osadl.org/backfire-4.backfire.0.html] to measure the user to/from kernel latency.I wanted to measure the difference between the RT_PREEMPT kernel and Xenomai Kernel. Surprisingly i see RT_PREEMPT performance better than Xenomai. 
 
Here are few points to note:
1. The thread priority of the "sendme" tool of backfire in RT_PREEMPT is 99 [highest]
2. I have made the thread priority 99 for the rt_task that i spawn [par of ported sendme]
ret = rt_task_shadow(&rt_task_desc, NULL, 99, 0);
 
My Questions:
* I wanted to know if any one has done such measurements using backfire and how dose Xenomai fair agnist RT_PREEMPT?
* is there any similar tool like backfire in the Xenomai tool set that dose the similar measurements?
* Do I need to do more Xenomai specific optimization in the "sendme" and "backfire" code to get better performance?
 
Thanks - Krishna 
  		 	   		  

[-- Attachment #2: Type: text/html, Size: 2418 bytes --]

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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
  2011-04-06 16:18 [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai krishna m
@ 2011-04-06 17:56 ` Gilles Chanteperdrix
  2011-04-06 18:31   ` krishna murthy j s
       [not found]   ` <BLU0-SMTP1079F1DC5F0C055D54FD27BDA50@domain.hid>
  2011-04-06 18:33 ` Wolfgang Denk
  1 sibling, 2 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2011-04-06 17:56 UTC (permalink / raw)
  To: krishna m; +Cc: xenomai

krishna m wrote:
> I ported the backfire tool in the OSADL site [https://www.osadl.org/backfire-4.backfire.0.html] to measure the user to/from kernel latency.I wanted to measure the difference between the RT_PREEMPT kernel and Xenomai Kernel. Surprisingly i see RT_PREEMPT performance better than Xenomai. 
>  
> Here are few points to note:
> 1. The thread priority of the "sendme" tool of backfire in RT_PREEMPT is 99 [highest]
> 2. I have made the thread priority 99 for the rt_task that i spawn [par of ported sendme]
> ret = rt_task_shadow(&rt_task_desc, NULL, 99, 0);
>  
> My Questions:
> * I wanted to know if any one has done such measurements using backfire and how dose Xenomai fair agnist RT_PREEMPT?
> * is there any similar tool like backfire in the Xenomai tool set that dose the similar measurements?
> * Do I need to do more Xenomai specific optimization in the "sendme" and "backfire" code to get better performance?

Useless notes, useless questions. Show us the "ported" code.


-- 
					    Gilles.


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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
  2011-04-06 17:56 ` Gilles Chanteperdrix
@ 2011-04-06 18:31   ` krishna murthy j s
  2011-04-06 22:26     ` Philippe Gerum
       [not found]   ` <BLU0-SMTP1079F1DC5F0C055D54FD27BDA50@domain.hid>
  1 sibling, 1 reply; 7+ messages in thread
From: krishna murthy j s @ 2011-04-06 18:31 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

Thanks for the reply. Can you please tell me why my questions are useless.
Such attitude will take Xenomai user group no where.

On Wed, Apr 6, 2011 at 6:56 PM, Gilles Chanteperdrix <
gilles.chanteperdrix@xenomai.org> wrote:

> krishna m wrote:
> > I ported the backfire tool in the OSADL site [
> https://www.osadl.org/backfire-4.backfire.0.html] to measure the user
> to/from kernel latency.I wanted to measure the difference between the
> RT_PREEMPT kernel and Xenomai Kernel. Surprisingly i see RT_PREEMPT
> performance better than Xenomai.
> >
> > Here are few points to note:
> > 1. The thread priority of the "sendme" tool of backfire in RT_PREEMPT is
> 99 [highest]
> > 2. I have made the thread priority 99 for the rt_task that i spawn [par
> of ported sendme]
> > ret = rt_task_shadow(&rt_task_desc, NULL, 99, 0);
> >
> > My Questions:
> > * I wanted to know if any one has done such measurements using backfire
> and how dose Xenomai fair agnist RT_PREEMPT?
> > * is there any similar tool like backfire in the Xenomai tool set that
> dose the similar measurements?
> > * Do I need to do more Xenomai specific optimization in the "sendme" and
> "backfire" code to get better performance?
>
> Useless notes, useless questions. Show us the "ported" code.
>
>
> --
>                                             Gilles.
>
>

[-- Attachment #2: Type: text/html, Size: 1847 bytes --]

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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
  2011-04-06 16:18 [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai krishna m
  2011-04-06 17:56 ` Gilles Chanteperdrix
@ 2011-04-06 18:33 ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2011-04-06 18:33 UTC (permalink / raw)
  To: krishna m; +Cc: xenomai

Dear krishna m,

In message <COL122-W4082C3BC356937E8C1DDADBDA50@domain.hid> you wrote:
> 
> * is there any similar tool like backfire in the Xenomai tool set that dose
>  the similar measurements?

We use (and recommend) the "gpioirqbench" benchmark. See the
application note for it here:
http://www.denx.de/wiki/DULG/AN2008_03_Xenomai_gpioirqbench

Note that this works with both Xenomai and PREEMPT_RT.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
The man on tops walks a lonely street;  the  "chain"  of  command  is
often a noose.


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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
       [not found]   ` <BLU0-SMTP1079F1DC5F0C055D54FD27BDA50@domain.hid>
@ 2011-04-06 19:09     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2011-04-06 19:09 UTC (permalink / raw)
  To: krishna murthy j s; +Cc: xenomai

krishna murthy j s wrote:
> Thanks for the reply. Can you please tell me why my questions are useless.
> Such attitude will take Xenomai user group no where.

You obviously have not read any Xenomai documentation or FAQ. So you
should wait do have done so before writing any code, drawing any
conclusion, or asking any question. If you want to make any performance
comparison before doing any of this, you should use the tests which
Xenomai and preempt_rt provide, and compare based on their results. That
is why.

Chances are high that your test is broken, but we can not conclude
before you show us the code.

So now, show us the code, or use the provided tests, or go reading
documentation. But stop asking questions before you have done any of that.

-- 
					    Gilles.


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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
  2011-04-06 18:31   ` krishna murthy j s
@ 2011-04-06 22:26     ` Philippe Gerum
  2011-04-07  5:40       ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2011-04-06 22:26 UTC (permalink / raw)
  To: krishna murthy j s; +Cc: xenomai

On Wed, 2011-04-06 at 19:31 +0100, krishna murthy j s wrote:
> Thanks for the reply. Can you please tell me why my questions are
> useless. Such attitude will take Xenomai user group no where. 

It is often better to go nowhere than to go to the wrong place. Anyway,
some reasons for the flak you received could be:

- no specification of your target hardware. I understand there is a
long-standing trend to throw results into the latency debate without a
single bit of information regarding the hardware configuration under
test, the actual code being used (and not a vague description of what it
eventually does), how it has been changed and how it has been used, but
well, we are old-fashioned folks: we do prefer facts. Besides, we do
think there is life beyond x86, so it is always better to be specific in
this area when sending us inquiries.

- backfire comes from the PREEMPT_RT test suite. As such, it does not
care of any dual kernel issues. We do, when writing an application. So,
unless you also wrote an RTDM driver to replace the original backfire
driver, what you are testing is actually plain vanilla Linux, with the
additional overhead of moving your task back and forth between the
Xenomai scheduler and the Linux scheduler at a high rate. If so, no
wonder why you get some extra latency with Xenomai. It's a bit like
driving on a racetrack paved with speed bumpers.

- measuring the latency of Linux signal delivery like backfire does is
interestingly totally off-base wrt Xenomai, because linux signals are
delivered to Xenomai tasks ... in Linux mode (yes, we have runtime modes
like dual kernel systems may have). So, no real-time here either. Since
Xenomai does not implement signal delivery in real-time mode yet, what
you are testing still remains a mystery. But maybe you could explain
better?

To sum up, each RT enabler comes with a test suite which has been
written carefully to illustrate a particular behavior or performance
aspect, and Xenomai follows this common rule.

Before issuing any claims, maybe you could have posted your code, a
detailed description of your setup, and your test scenario. Asking
people to reverse-engineer what you might have done, based on a couple
of lose details placed side-by-side with strong claims and conclusions,
is not the best way to draw attention.

So, don't take what was said earlier personally. It is just that
sometimes, people may have tuned their bullshit deflector a bit eagerly.
Mine is totally busted btw, so you never know.

> 
> On Wed, Apr 6, 2011 at 6:56 PM, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
>         
>         krishna m wrote:
>         > I ported the backfire tool in the OSADL site
>         [https://www.osadl.org/backfire-4.backfire.0.html] to measure
>         the user to/from kernel latency.I wanted to measure the
>         difference between the RT_PREEMPT kernel and Xenomai Kernel.
>         Surprisingly i see RT_PREEMPT performance better than Xenomai.
>         >
>         > Here are few points to note:
>         > 1. The thread priority of the "sendme" tool of backfire in
>         RT_PREEMPT is 99 [highest]
>         > 2. I have made the thread priority 99 for the rt_task that i
>         spawn [par of ported sendme]
>         > ret = rt_task_shadow(&rt_task_desc, NULL, 99, 0);
>         >
>         > My Questions:
>         > * I wanted to know if any one has done such measurements
>         using backfire and how dose Xenomai fair agnist RT_PREEMPT?
>         > * is there any similar tool like backfire in the Xenomai
>         tool set that dose the similar measurements?
>         > * Do I need to do more Xenomai specific optimization in the
>         "sendme" and "backfire" code to get better performance?
>         
>         
>         Useless notes, useless questions. Show us the "ported" code.
>         
>         
>         --
>                                                    Gilles.
>         
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core

-- 
Philippe.




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

* Re: [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai
  2011-04-06 22:26     ` Philippe Gerum
@ 2011-04-07  5:40       ` Gilles Chanteperdrix
  0 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2011-04-07  5:40 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
> On Wed, 2011-04-06 at 19:31 +0100, krishna murthy j s wrote:
>> Thanks for the reply. Can you please tell me why my questions are
>> useless. Such attitude will take Xenomai user group no where. 
> 
> So, don't take what was said earlier personally. It is just that
> sometimes, people may have tuned their bullshit deflector a bit eagerly.
> Mine is totally busted btw, so you never know.

My apologies for losing my temper. There are valid reasons to choose
preempt_rt over Xenomai, but each time we test, we see that we get lower
latencies with Xenomai, so, lower latencies is not among those valid
reasons.

But, by the way, if you are into choosing preempt_rt or Xenomai, you
should ponder these other reasons. Notably the fact that it is much
easier to write a real-time application with preempt_rt without
understanding its inner workings, than it is with Xenomai.

I wonder if we should not make a wiki page which dispassionately
document the dual-kernel vs native preemption issue.

-- 
                                                                Gilles.


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

end of thread, other threads:[~2011-04-07  5:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 16:18 [Xenomai-core] Backfire: User <-> Kernel latancy mesurement tool on Xenomai krishna m
2011-04-06 17:56 ` Gilles Chanteperdrix
2011-04-06 18:31   ` krishna murthy j s
2011-04-06 22:26     ` Philippe Gerum
2011-04-07  5:40       ` Gilles Chanteperdrix
     [not found]   ` <BLU0-SMTP1079F1DC5F0C055D54FD27BDA50@domain.hid>
2011-04-06 19:09     ` Gilles Chanteperdrix
2011-04-06 18:33 ` Wolfgang Denk

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.