mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Strange system library search paths with OSELAS.Toolchain
Date: Thu, 11 Feb 2016 13:10:05 +0100	[thread overview]
Message-ID: <20160211121005.GX32288@pengutronix.de> (raw)
In-Reply-To: <20160209164231.GA927@archie.tuxnet.lan>

On Tue, Feb 09, 2016 at 05:42:31PM +0100, Clemens Gruber wrote:
> On Tue, Feb 09, 2016 at 10:31:22AM +0100, Juergen Borleis wrote:
> > <path/to/toolchain>/sysroot-<toolchain-name>/sbin/ldconfig
> 
> Very nice, thank you! After running ldconfig on the target, running strace
> with /bin/true shows only one access for /etc/ld.so.preload before using
> the /etc/ld.so.cache successfully. That's a major improvement! Nearly 30
> syscalls less, per process :)
> 
> Now I'll just write a little ptxdist rule to call ldconfig once at
> initialization (or at every startup? Some distros seem to do that.)
> 
> If I ever want to support running opkg on the target, I should probably
> have a mechanism to automatically rerun ldconfig in case a library was
> changed.
> 
> > > I am curious: Do you also see those weird runtime paths on your ptxdist
> > > projects or is there something wrong with my toolchain / bsp build?
> > 
> > I saw these search paths on almost every system, independent of the 
> > distribution (embedded or not).
> 
> Maybe we could add a rule to ptxdist to run ldconfig by default on the
> target? Assuming that saving syscalls is beneficial for everybody?

rc.once would be the right tool for the job. I never bothered with it
because when starting an app with cold caches the startup time difference
was barely measurable.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2016-02-11 12:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 15:33 Clemens Gruber
2016-02-08  8:58 ` Juergen Borleis
2016-02-09  0:04   ` Clemens Gruber
2016-02-09  9:31     ` Juergen Borleis
2016-02-09 16:42       ` Clemens Gruber
2016-02-11 12:10         ` Michael Olbrich [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=20160211121005.GX32288@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox