From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Georg Gottleuber <gg@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] strange latency output (xenomai-2.4.5)
Date: Tue, 10 Feb 2009 20:16:32 +0100 [thread overview]
Message-ID: <4991D290.8020306@domain.hid> (raw)
In-Reply-To: <E1LWwd9-0007TE-Ee@domain.hid>
Georg Gottleuber wrote:
>
> Gilles Chanteperdrix schrieb:
>> Georg Gottleuber wrote:
>>> Gilles Chanteperdrix schrieb:
>>>> Georg Gottleuber wrote:
>>>>> Hi,
>>>>>
>>>>> I recently port a ARM926EJ-S mach to Xenomai
>>>>> (like described in http://www.xenomai.org/index.php/I-pipe:ArmPorting).
>>>>>
>>>>> While testing with latency I got this output:
>>>>> # /usr/xenomai/bin/latency -p 1000 -h -s -H 500 -t 1
>>>>> == Sampling period: 1000 us
>>>>> == Test mode: in-kernel periodic task
>>>>> == All results in microseconds
>>>>> warming up...
>>>>> RTT| 00:00:01 (in-kernel periodic task, 1000 us period, priority 99)
>>>>> RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
>>>>> RTD| 78.992| 104.308| 124.131| 0| 78.992| 124.131
>>>>> ...
>>>>> RTD| 14.678| 68.413| 96.275| 0| 9.528| 155.321
>>>>> RTD| 84.046| 116.435| 175.192| 0| 9.528| 182.139
>>>>> ... ^^^^^^^ ^^^^^^^
>>>> I do not understand, what is wrong with these values ?
>>> It thought, if "lat max" of the current interval is bigger than "lat worst", this "lat
>>> max" updates the "lat worst". So I ask myself, out of which interval comes the updated 182
>>> value?
>> If your machine is highly loaded, like what you get with a ping -f, the
>> "display" thread, which is a non real-time one, may be delayed for more
>> than one second, in which case, it "misses", what is sent by the
>> "sampling" thread, but the sampling thread never looses the worst
>> latency itself, so that when the display thread finally manages to print
>> something, it will print the correct worst case latency.
>>
>
> Bingo. That's the point. This also explains totally equal lines and missing time
> stamps/lines that I have observed.
Yes, the communication between the sampling and display threads is a
semaphore, so when the display thread is delayed, it will get the
semaphore several times in a row and print the same values.
If your patch is for a machine in the mainline linux, I would be happy
to merge your changes into the I-pipe patch.
It would be interesting if you could try a recent patch with the "FCSE"
option, to see if it works for 926 (it was tested for 920 and xscale
only), and what gains you get on latencies.
--
Gilles.
next prev parent reply other threads:[~2009-02-10 19:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 16:49 [Xenomai-help] strange latency output (xenomai-2.4.5) Georg Gottleuber
2009-02-10 16:47 ` Gilles Chanteperdrix
2009-02-10 17:22 ` Georg Gottleuber
2009-02-10 17:21 ` Gilles Chanteperdrix
2009-02-10 17:29 ` Gilles Chanteperdrix
2009-02-10 17:46 ` Georg Gottleuber
2009-02-10 19:16 ` Gilles Chanteperdrix [this message]
2009-02-10 19:46 ` Georg Gottleuber
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=4991D290.8020306@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=gg@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.