All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: adeos-main <adeos-main@gna.org>
Subject: Re: [Adeos-main] [RFC][PATCH] Reduce pipeline_head access overhead
Date: Tue, 25 Mar 2008 09:17:00 +0100	[thread overview]
Message-ID: <47E8B4FC.5010708@domain.hid> (raw)
In-Reply-To: <47C51F5B.6090903@domain.hid>

Jan Kiszka wrote:
> This patch is in fact part of my xnlock rework (updates on that one will
> follow the next days). I noticed that the complexity of
> ipipe_cpudom_var(head_domain, *), normally inlined, is fairly relevant
> for the text size of Xenomai and may thus impact the WCET as well.
> 
> So I applied the same pattern as already used for ipipe_root_cpudom_var
> also to the head domain, ie. assigned a fixed slot, the topmost, in
> ipipe_percpu_daddr/darray to the head domain. This gives a nice text
> size reduction as we no longer need to go via
> __ipipe_pipeline.next->slot (2 memory accesses, even 3 on x867/SMP +
> some arithmetics) to look up the address of per-cpu domain variables
> like "status".
> 
> The drawback is that this introduces an inconsistency to the
> ipipe_*_pipeline_head API: It no longer works for head == root. While
> this is most probably irrelevant in practice, it remains ugly. I already
> thought about renaming the modified services (and deprecating the
> original ones), but for now I would like to focus the discussion on the
> optimized services.
> 
> The patch already survived quite some testing on various real and
> virtual boxes with Xenomai. Latency reduction is hard to estimate as
> such comparably small optimizations are within the noise range of fast
> test boxes. Maybe someone could give this a try on a smaller device (UP
> should benefit from this patch as well!).
>

The root domain cannot be an invariant pipeline head, by design, so I don't see
any showstopper regarding this approach. This looks good.

> Jan
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main


-- 
Philippe.


      reply	other threads:[~2008-03-25  8:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27  8:29 [Adeos-main] [RFC][PATCH] Reduce pipeline_head access overhead Jan Kiszka
2008-03-25  8:17 ` Philippe Gerum [this message]

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=47E8B4FC.5010708@domain.hid \
    --to=rpm@xenomai.org \
    --cc=adeos-main@gna.org \
    --cc=jan.kiszka@domain.hid \
    /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.