All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: jagarcia@domain.hid, xenomai@xenomai.org
Subject: Re: [Xenomai-help] AT91SAM9260 latency
Date: Mon, 28 Jan 2008 15:10:30 +0100	[thread overview]
Message-ID: <479DE256.8060100@domain.hid> (raw)
In-Reply-To: <2ff1a98a0801280551v60bc61b4y122989f9c8904e12@domain.hid>

Gilles Chanteperdrix wrote:
> On Jan 28, 2008 2:46 PM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> Gilles Chanteperdrix wrote:
>>> On Jan 28, 2008 2:34 PM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>>>> Gilles Chanteperdrix wrote:
>>>>> ...
>>>>> The behaviour you get may be due, for instance, to the fact that the
>>>>> processor goes into some sleep mode when idle and to a wake-up
>>>>> latency; if you run some load, there is no wake-up latency. It is hard
>>>>> to say anything. In order to investigate, I would instrument the
>>>>> kernel to trace the irq masking sections.
>>>> Don't we have the I-pipe tracer on this platform?
>>> Unfortunately, the tracer on arm has too much overhead to give
>>> meaningful results.
>> Hmm. Unless the system becomes unusable while running the tracer, I
>> don't see the show-stopper yet. We are looking for an increase of the
>> latency when triggering a certain event. That should remain measurable
>> even if the base latency is far higher than usually.
>>
>> Do you know what makes the tracer so slow?
>>
> 
> I suspected the fact that we disabled and enabled hardware irqs in
> ipipe_get_tsc, but I reimplemented ipipe_get_tsc to not shut
> interrupts off and the overhead of the tracer remains high.

The tracer itself is built upon atomicity through irq disabling, so the
issue is broader - if only playing with irq flags is the problem.

Are there any trivial functions needlessly instrumented that cause too
much overhead? Maybe spending some more "notrace" would help then.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


  reply	other threads:[~2008-01-28 14:10 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 [this message]
2008-01-29  8:09                 ` Juan Antonio Garcia Redondo
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=479DE256.8060100@domain.hid \
    --to=jan.kiszka@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.