linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Measure Interrupt Latency on MPC5200B
@ 2006-09-14 12:00 Syed Amer Gilani
  2006-09-19 12:05 ` Josu Onandia
  0 siblings, 1 reply; 4+ messages in thread
From: Syed Amer Gilani @ 2006-09-14 12:00 UTC (permalink / raw)
  To: Linuxppc-embedded

We have a MPC5200B(ppc) Board from Phytec, running with a 2.6 Linux
Kernel. For Documentation purposes and testings how patches to the
Kernel affects real time capabilities we want to measure the Interrupt
Latency.
I only found tools for other arches or patches for far to old kernels.
Does somebody know a way for a 2.6 kernel on ppc? I already thought of
generating a signal on an Output of the Board and measure it with a
Oscilloscope but i don't find that method satisfying.

Thank you in advance,
Syed Amer Gilani

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

* Re: Measure Interrupt Latency on MPC5200B
  2006-09-14 12:00 Measure Interrupt Latency on MPC5200B Syed Amer Gilani
@ 2006-09-19 12:05 ` Josu Onandia
  2006-09-19 12:16   ` Esben Nielsen
  0 siblings, 1 reply; 4+ messages in thread
From: Josu Onandia @ 2006-09-19 12:05 UTC (permalink / raw)
  To: Syed Amer Gilani; +Cc: Linuxppc-embedded

Syed Amer Gilani wrote:

>We have a MPC5200B(ppc) Board from Phytec, running with a 2.6 Linux
>Kernel. For Documentation purposes and testings how patches to the
>Kernel affects real time capabilities we want to measure the Interrupt
>Latency.
>I only found tools for other arches or patches for far to old kernels.
>Does somebody know a way for a 2.6 kernel on ppc? I already thought of
>generating a signal on an Output of the Board and measure it with a
>Oscilloscope but i don't find that method satisfying.
>
>Thank you in advance,
>Syed Amer Gilani
>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded@ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>  
>
Hi. I'm sorry for my own latency, but I've been very busy.

I'm measuring interrup latency in an MPC5200B, too, but with Linux 2.4.

With this processor you can use the TB registers to measure a lapse of time.

I use a GPT timer to generate a periodic interrupt. From the interrupt 
routine I read the TBL and compare it with the expected value.

I do this using RTAI, because I need real-time response to interrupts, 
but I suppose that with little effort you can port it to standard Linux.

If you want more details, or my actual source code, email me.

Josu Onandia

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

* Re: Measure Interrupt Latency on MPC5200B
  2006-09-19 12:05 ` Josu Onandia
@ 2006-09-19 12:16   ` Esben Nielsen
  2006-09-19 12:44     ` Josu Onandia
  0 siblings, 1 reply; 4+ messages in thread
From: Esben Nielsen @ 2006-09-19 12:16 UTC (permalink / raw)
  To: Josu Onandia; +Cc: Linuxppc-embedded

On Tue, 19 Sep 2006, Josu Onandia wrote:

> Syed Amer Gilani wrote:
>
>> We have a MPC5200B(ppc) Board from Phytec, running with a 2.6 Linux
>> Kernel. For Documentation purposes and testings how patches to the
>> Kernel affects real time capabilities we want to measure the Interrupt
>> Latency.
>> I only found tools for other arches or patches for far to old kernels.
>> Does somebody know a way for a 2.6 kernel on ppc? I already thought of
>> generating a signal on an Output of the Board and measure it with a
>> Oscilloscope but i don't find that method satisfying.
>>
>> Thank you in advance,
>> Syed Amer Gilani
>> _______________________________________________
>> Linuxppc-embedded mailing list
>> Linuxppc-embedded@ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>
>>
> Hi. I'm sorry for my own latency, but I've been very busy.
>
> I'm measuring interrup latency in an MPC5200B, too, but with Linux 2.4.
>
> With this processor you can use the TB registers to measure a lapse of time.
>
> I use a GPT timer to generate a periodic interrupt. From the interrupt
> routine I read the TBL and compare it with the expected value.
>
> I do this using RTAI, because I need real-time response to interrupts,
> but I suppose that with little effort you can port it to standard Linux.
>
> If you want more details, or my actual source code, email me.
>
> Josu Onandia
>
>

What are your results under the normal kernel and under RTAI?
Have anyone tried with -rt kernels? What are the results?

I work for a company using MPC5200 with VxWorks. It could be fun to 
compare numbers...

Esben

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

* Re: Measure Interrupt Latency on MPC5200B
  2006-09-19 12:16   ` Esben Nielsen
@ 2006-09-19 12:44     ` Josu Onandia
  0 siblings, 0 replies; 4+ messages in thread
From: Josu Onandia @ 2006-09-19 12:44 UTC (permalink / raw)
  To: Esben Nielsen; +Cc: Linuxppc-embedded

Esben Nielsen wrote:

> On Tue, 19 Sep 2006, Josu Onandia wrote:
>
>> Syed Amer Gilani wrote:
>>
>>> We have a MPC5200B(ppc) Board from Phytec, running with a 2.6 Linux
>>> Kernel. For Documentation purposes and testings how patches to the
>>> Kernel affects real time capabilities we want to measure the Interrupt
>>> Latency.
>>> I only found tools for other arches or patches for far to old kernels.
>>> Does somebody know a way for a 2.6 kernel on ppc? I already thought of
>>> generating a signal on an Output of the Board and measure it with a
>>> Oscilloscope but i don't find that method satisfying.
>>>
>>> Thank you in advance,
>>> Syed Amer Gilani
>>> _______________________________________________
>>> Linuxppc-embedded mailing list
>>> Linuxppc-embedded@ozlabs.org
>>> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>>
>>>
>> Hi. I'm sorry for my own latency, but I've been very busy.
>>
>> I'm measuring interrup latency in an MPC5200B, too, but with Linux 2.4.
>>
>> With this processor you can use the TB registers to measure a lapse 
>> of time.
>>
>> I use a GPT timer to generate a periodic interrupt. From the interrupt
>> routine I read the TBL and compare it with the expected value.
>>
>> I do this using RTAI, because I need real-time response to interrupts,
>> but I suppose that with little effort you can port it to standard Linux.
>>
>> If you want more details, or my actual source code, email me.
>>
>> Josu Onandia
>>
>>
>
> What are your results under the normal kernel and under RTAI?
> Have anyone tried with -rt kernels? What are the results?
>
> I work for a company using MPC5200 with VxWorks. It could be fun to 
> compare numbers...
>
> Esben

This is a Lite5200B running at 462MHz, kernel 2.4.25 and RTAI 24.1.11, 
from Denx.

I haven't tried under normal kernel. With RTAI I have 1,5usec from the 
actual interrupt until RTAI call my ISR function. This adds the 
processor latency plus the RTAI dispatcher overhead. With heavy IO load, 
ethernet and disk, the maximum is 8usec.

I'd really like to see your results, to compare with a real RTOS.

Josu

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

end of thread, other threads:[~2006-09-19 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 12:00 Measure Interrupt Latency on MPC5200B Syed Amer Gilani
2006-09-19 12:05 ` Josu Onandia
2006-09-19 12:16   ` Esben Nielsen
2006-09-19 12:44     ` Josu Onandia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).