Re: [Xenomai-help] Xenomai Periodic Latency Spikes

2012-05-17 Thread Gilles Chanteperdrix
On 05/17/2012 09:12 PM, Wolz, Troy wrote:
 Hello,
 
 When running the latency program provided in the Xenomai source, my latency 
 numbers for 'max latency' is consistently over 30 us.

And you think that it should be under 30 us because... ?

-- 
Gilles.

___
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help


Re: [Xenomai-help] Xenomai Periodic Latency Spikes

2012-05-17 Thread Gilles Chanteperdrix
On 05/17/2012 09:35 PM, Wolz, Troy wrote:
 In the attached plots, there appear to be very periodic spikes in
 latency. In the time between these spikes, the worst case latency is
 around 5 us. Is this to be expected? Is worst case latency typically
 periodic in nature?

From the measurements I posted recently:
http://sisyphus.hd.free.fr/~gilles/core-3.2-latencies

It seems on higher-end machines, the probability decreases approximately
exponentially from the average latency to the max latency. So, every
latency smaller than the worst case latency has some probability to
happen, and happens from time to time.

On an atom 230 (which admittedly is not a such high end machine), the
average latency is less than 10us, but the maximum latency reaches 70us
when running with CONFIG_SMP.

The worst case latency you obtain on a machine without load, or over a
short period of time does not mean anything. If you are serious about
measuring the worst case latency, you have to do it over a long period
of time while running under load. We provide the xeno-test and
dohell scripts for that.

If your kernel is running with CONFIG_HZ set to 1000, the thing which
happens once every 1ms is the 8254 timer interrupt, on cpu 0 at least.

If you want to know what happens when the worst case latency is reached
you have to enable the I-pipe tracer and run the latency test with the
-f argument.

I am not saying that there is not a problem with your setup, but there
is nothing proving that in what you posted.

Please no:
- private mails
- html mails
- un-wrapped lines
- top-posting.


-- 
Gilles.

___
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help


Re: [Xenomai-help] Xenomai Periodic Latency Spikes

2012-05-17 Thread Gilles Chanteperdrix
On 05/17/2012 09:12 PM, Wolz, Troy wrote:
 Hello,
 
 When running the latency program provided in the Xenomai source, my
 latency numbers for 'max latency' is consistently over 30 us. I have
 installed Xenomai 2.6.0 using Linux kernel 2.6.38.8. I have attached
 my config for my linux kernel. SMI is disabled, legacy USB support is
 disabled in the BIOS, and the other obvious latency killers provided
 in the troubleshooting guide have been checked.

Oly CONFIG_ACPI_PROCESSOR should be turned off. It is recommended to
keep CONFIG_ACPI on.

CONFIG_XENO_OPT_DEBUG_XNLOCK has some impact on latencies, if you want
to reduce latencies, you should turn it off.

-- 
Gilles.

___
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help