All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Karl Tyss <tyss.k@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] IRQ-Latency when in idle State on ARM
Date: Fri, 05 Jun 2009 17:01:00 +0200	[thread overview]
Message-ID: <4A29332C.6080204@domain.hid> (raw)
In-Reply-To: <4A294CAB.3E52.00F8.0@domain.hid>

Karl Tyss wrote:
> Disabling the I- or D-cache is available as an option by using
> menuconfig under system-type.

Ok. I misread the configuration file. Also note that the idle function
for arm926 core only disables the I-cache if it was not already
disabled. So, if you are running with I-cache disabled, fiddling with
this code should not change anything.

> 
> As to the Jitters - I didn't describe it correctly what i was doing. I
> disabled the both caches as a trick to test if there is a difference.
> The 2 us timing difference was without the caches. With I- and D-cache
> online i had a difference of 13 us as average value (15us idle and 3 us
> with user space load)

13us or 15us is still ridiculous on ARM. 3us even more. Average values
are irrelevant, what matters is the worst case. If you only get a 3us
difference when loading the system, then you are not loading the system
enough. You should see latencies above 100us when properly loading the
system. As I already told you, the way to proper load the system is to
run LTP.

> I have to estimate a critical path in order to decide if a timer
> interrupt driven periodic task or a xenomai periodic task is better for
> my system. As I noticed this effect of the idle task I had to know why
> in order to document it or to change the part of the code.

Xenomai latency test is made for that. Run latency -t 2 to measure the
timer interrupt latency, use latency -t 1 to use a Xenomai kernel-space
periodic task, or latency -t 2 to use a Xenomai user-space periodic
task. And I repeat, the only meaningful result of these tests is the
worst case latency, and only when properly loading the system, and when
running this test for a long time (one or two full runs of LTP).

> 
> Well, now I know what to do and I have to find out if disabling the
> I-cache is critical at this point and if so, how one can avoid it. My
> system doesn't have  to save power if its online and I suppose that
> disabling this kind of idleness could be a nice feature in the kernel or
> xenomai.

Disabling the cache is not recommended.

-- 
					    Gilles.


  reply	other threads:[~2009-06-05 15:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A28F029020000F80002DB14@domain.hid>
     [not found] ` <4A28FAD4020000F80002DB27@domain.hid>
2009-06-05  9:00   ` [Xenomai-help] IRQ-Latency when in idle State on ARM Karl Tyss
2009-06-05  9:31     ` Gilles Chanteperdrix
2009-06-05  9:56       ` Karl Tyss
2009-06-05 11:10         ` Gilles Chanteperdrix
2009-06-05 13:42         ` Gilles Chanteperdrix
2009-06-05 14:09           ` Karl Tyss
2009-06-05 14:16             ` Gilles Chanteperdrix
2009-06-05 14:17             ` Gilles Chanteperdrix
2009-06-05 14:49               ` Karl Tyss
2009-06-05 15:01                 ` Gilles Chanteperdrix [this message]
2009-06-05 12:13     ` Bosko Radivojevic
2009-06-08  7:31       ` Karl Tyss
2009-06-05 17:36 Karl Tyss
     [not found] <4A294F59020000F80002DC0E@msw.eppendorf.de>
     [not found] ` <200906051932.16827.karl.tyss@domain.hid>
2009-06-05 18:09   ` Gilles Chanteperdrix
2009-06-05 19:08     ` Gilles Chanteperdrix
2009-06-06 17:38       ` Karl Tyss
2009-06-06 18:00         ` 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=4A29332C.6080204@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=tyss.k@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.