This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Clock/interrupt latency
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- Cc: "eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: 28 Aug 2003 11:39:12 +0100
- Subject: Re: [ECOS] Clock/interrupt latency
- References: <004B1D7A5257174C9044A1B7BD0E60EDA65E96@ratatosk.combitechsystems.com>
"Daniel Lidsten" <Daniel.Lidsten@combitechsystems.com> writes:
> Hi,
>
> I have a question regarding the clock/interrupt latency (on a MPC823e).
> When i run the tm_basic test then i get a very high variation in the
> measured times as you can see below.
>
> If i look in the realtime characterization section in the user manual
> then i find a variation of 3 to 5 times between maximun and average to
> be normal, not as much as my measure.
>
> ---- tm_basic diag------
> 4.75 3.84 158.72 0.00 Clock/interrupt latency
> 5.32 3.84 12.16 0.00 Clock DSR latency
> ---- tm_basic ------
>
> I tried to define diag_printf as printf and then i got the below
> measurements. How come that diag_printf has that effect on my measure?
>
> ---- tm_basic printf ------
> 4.75 3.84 8.96 0.00 Clock/interrupt latency
> 5.20 3.52 11.84 0.00 Clock DSR latency
> ---- tm_basic ------
diag_printf() disables interrupts while it runs, so it will increase
ISR latency. However, tm_basic ought to also disable latency recording
whenever it calls diag_printf(). Maybe some unprotected calls have
snuck in somewhere.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss