linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Josu Onandia <jonandia@fagorautomation.es>
To: Esben Nielsen <nielsen.esben@gogglemail.com>
Cc: Linuxppc-embedded@ozlabs.org
Subject: Re: Measure Interrupt Latency on MPC5200B
Date: Tue, 19 Sep 2006 14:44:12 +0200	[thread overview]
Message-ID: <450FE61C.6050006@fagorautomation.es> (raw)
In-Reply-To: <Pine.LNX.4.64.0609191414090.10784@frodo.shire>

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

      reply	other threads:[~2006-09-19 12:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=450FE61C.6050006@fagorautomation.es \
    --to=jonandia@fagorautomation.es \
    --cc=Linuxppc-embedded@ozlabs.org \
    --cc=nielsen.esben@gogglemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).