From: Juan Antonio Garcia Redondo <juan-antonio.garcia@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: jagarcia@domain.hid, xenomai@xenomai.org
Subject: Re: [Xenomai-help] AT91SAM9260 latency
Date: Tue, 29 Jan 2008 09:09:22 +0100 [thread overview]
Message-ID: <20080129080922.GA6314@domain.hid> (raw)
In-Reply-To: <2ff1a98a0801280519m62768928x5e5fa40123abe9cd@domain.hid>
On 28/01/08 14:19, Gilles Chanteperdrix wrote:
> > >
> > >
> > > > > No mystery: hitting a key on a telnet session causes an interrupt
> > > > > masking section of 110us, you see it as the maximum if you never
> > > > > observed longer masking sections, but it is not the maximum if you
> > > > > observed longer masking sections.
> > > >
> > > > OK, but why the masking section on linux side affects to xenomai side ?
> > > > Another thing I don't understand is why when the system has load (above
> > > > I'm talking about calibrator but the same occurs with dd if=/dev/zero
> > > > of=/dev/null), the effect seems to dissapear.
> > >
> > > It is probably not a masking section on linux side but rather a
> > > masking section on I-pipe side. Anyway, the effect does not disappear:
> > > it means that the cache effects cause larger latencies than the
> > > ethernet interrupt, but maybe I did not understand what you explained.
> > > The results you obtain with no load are simply irrelevant.
> >
> > I'll try to explain it better:
> >
> > o Without load I run ./latency -t0 -p500.
> > RTD| 33.182| 53.479| 67.976| 0| 31.250| 77.319
> > RTD| 43.170| 53.479| 67.654| 0| 31.250| 77.319
> > RTD| 41.881| 53.479| 67.332| 0| 31.250| 77.319
> > RTT| 00:02:07 (periodic user-mode task, 500 us period, priority 99)
> >
> > o Each time I press a key (over a telnet session) I can see the lat_max field increase on 40 to 50 us aprox.
> > RTD| 33.505| 53.479| 71.842| 0| 26.739| 77.319
> > RTD| 40.592| 62.177| 123.067| 0| 26.739| 123.067
> > -------
> > \_________: Key pressed
> > RTD| 50.579| 53.479| 73.775| 0| 26.739| 123.067
>
> This is where you are wrong:
> - first, let me repeat it: test made without load are irrelevant;
I can't agree with you. When we stress a system with load is, as far as
I know, because usually, the large latencies don't appear on a quiet
system. Here we have a case where a large latency (the lat_worst number
I've gotten after more than 7 hours with the system fully loaded is even
less than this) appears on a quiet system and directly related to an
external event.
> - second, an event has no relative effect on max latency, its effect
> is absolute: pressing a key over a telnet session causes, for unknown
> reason, a masking section of around 130us, which happens to also be
> the worst case latency that we measured properly with a loaded system.
I pointed out the lat_max field because, if you keep the latency test
running and hit a key on a telnet session, you can easily see how the
lat_max increase each time you hit the key, while the lat_worst increase
depends on the former history.
>
> Now, if you want to know why you get such a masking section, you are
> free to investigate.
I'll try to do it.
Regards,
Juan Antonio
next prev parent reply other threads:[~2008-01-29 8:09 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 6:52 [Xenomai-help] AT91SAM9260 latency Juan Antonio Garcia Redondo
2008-01-23 10:04 ` Gilles Chanteperdrix
2008-01-23 13:15 ` Gilles Chanteperdrix
2008-01-24 9:41 ` Juan Antonio Garcia Redondo
2008-01-24 10:02 ` Gilles Chanteperdrix
2008-01-25 10:04 ` Juan Antonio Garcia Redondo
2008-01-25 17:00 ` Gilles Chanteperdrix
2008-01-28 8:51 ` Juan Antonio Garcia Redondo
2008-01-28 9:21 ` Juan Antonio Garcia Redondo
2008-01-28 13:19 ` Gilles Chanteperdrix
2008-01-28 13:34 ` Jan Kiszka
2008-01-28 13:35 ` Gilles Chanteperdrix
2008-01-28 13:46 ` Jan Kiszka
2008-01-28 13:51 ` Gilles Chanteperdrix
2008-01-28 14:10 ` Jan Kiszka
2008-01-29 8:09 ` Juan Antonio Garcia Redondo [this message]
2008-01-29 8:35 ` Gilles Chanteperdrix
2008-01-29 17:19 ` Gilles Chanteperdrix
2008-01-30 9:03 ` Juan Antonio Garcia Redondo
2008-02-10 20:31 ` [Xenomai-core] " Gilles Chanteperdrix
2008-02-11 13:41 ` Jan Kiszka
2008-02-11 14:05 ` Gilles Chanteperdrix
2008-02-11 17:11 ` Jan Kiszka
2008-02-11 21:30 ` Gilles Chanteperdrix
2008-02-11 22:36 ` Gilles Chanteperdrix
2008-02-12 7:04 ` Gilles Chanteperdrix
2008-02-12 7:53 ` Gilles Chanteperdrix
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=20080129080922.GA6314@domain.hid \
--to=juan-antonio.garcia@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=jagarcia@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.