BOUIN Alexandre wrote:
>>It is a high.
> 
> by default, nucleus latency is set to 9342. I can diminish this value
> to 323µs only. Is it possible I've done something wrong ? Is there
> another way to reduce theses latencies ?
> 

The latency value is a value in nanoseconds, so 9342 is 9us. It is a
value used by the nucleus to compensate for the systematic latency of
your system. Usually, I set it to approximately the minimum value
returned by latency (plus the current value of the latency) minus a
small saftety margin, so that latency minimum value is close to 0 and I
do not get negative values.

> 
>>You should get plenty of negative values.
> 
> I've sent you my histogram and I don't see any negative value.
> Could you precise what was your thought ?

Look at the code:
static inline void add_histogram(long *histogram, long addval)
{
        /* bucketsize steps */
        long inabs =
            rt_timer_tsc2ns(addval >= 0 ? addval : -addval) / bucketsize;
        histogram[inabs < histogram_size ? inabs : histogram_size - 1]++;
}

So, you will never see a negative value in the histogram.


> 
> 
>>What is your kernel configuration, do not you have some
> 
> statistics/debug options enabled ?
> It is right : I've let some kernel debug options while performing these tests.
> I change it right now. 

I was thinking about Xenomai debug/statistics option. Xenomai nucleus
statistics collection, for instance, is enabled by default and should be
disabled for best performance. Check also that you did not enable
Xenomai debug options, or the I-pipe tracer.

> 
> Test was launched without any kernel debug options, and we got a worst
> case of 197µs now.
> Here is a sum up of our results : 
> [Board] :                      AT91SAM9261EK
> [Kernel version] :     2.6.19-at91-xenomai-adeos
> [Clocks] :                     CPU 198 MHz, master 99 MHz, main 18.432 MHz
> [Nucleus latency] :    323µs
> [Root] :                       nfs
> [Kernel debug options] : No
> [Load Softwares] :     calibrator + ping host + bonnie++
> [Duration] :           > 15h
> [Best Latency] :               45µs
> [Average Latency] :    82.5µs
> [Worst Latency] :      197µs

The best way to give us all the useful informations about your platform
and configuration is to use the xeno-test script. Sorry I did not
mention this earlier. You will have to use the -W option to use your
custom load generation script.

-- 
                                                 Gilles Chanteperdrix

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Reply via email to