All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: JK.Behnke@web.de
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] application start is slower with xenomai 2.6.4 than 2.4.10
Date: Thu, 12 Feb 2015 19:43:37 +0100	[thread overview]
Message-ID: <20150212184337.GA10928@hermes.click-hack.org> (raw)
In-Reply-To: <trinity-718930e5-2f32-4c34-98da-532709fb9429-1423747391055@3capp-webde-bs58>

On Thu, Feb 12, 2015 at 02:23:11PM +0100, JK.Behnke@web.de wrote:
> Hello,
> 
> I noticed that running the same xenomai application against xenomai 2.6.4
> is significantly slower on start up, than it was with xenomai 2.4.10.
> Calling my xenomai application 100 times by a bash script takes about 
> 1 sec on xenomai 2.4.10. On xenomai 2.6.4 however it takes about
> 20 secs.

On what hardware? What architecture?

> Even if I strip down my application to the absolut minimum of xenomai 
> calls like this

As you may know, everything is loaded on demand, so the application
start time does not depend on the application size.

> 
> main()
> {
>   mlockall(...);
>   rt_task_shadow(...);
> }
> 
> I get the same behaviour.
> 
> I have tested this on the same hardware (x86, atom). The only difference 
> is the Linux kernel (2.6.30.8 vs 3.14.17) version and the xenomai version
> (2.4.10 vs 2.6.4).
> 
> I once mistakenly linked my xenomai 2.4.10 application against libxenomai
> and also got the same behaviour (slower startup).
> So I suspect this has something to do with libxenomai I need to link 
> against, when building xenomai applications using xenomai 2.6.4.
> 
> Is there a kind of additional setup behind the scenes in xenomai 2.6.4?

The code source is available, so you can check what happens at
startup and even time it. I am afraid people who care about start
time with Xenomai are not numerous.

-- 
					    Gilles.


  reply	other threads:[~2015-02-12 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12 13:23 [Xenomai] application start is slower with xenomai 2.6.4 than 2.4.10 JK.Behnke
2015-02-12 18:43 ` Gilles Chanteperdrix [this message]
2015-02-13  7:46   ` JK.Behnke
2015-02-13 18:57     ` Gilles Chanteperdrix
2015-02-14 13:59       ` Jochen Behnke

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=20150212184337.GA10928@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=JK.Behnke@web.de \
    --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.