[Dev] Tizen 3.0 : Optimizing applications launch time

Ylinen, Mikko mikko.ylinen at intel.com
Tue Oct 22 07:35:41 GMT 2013


Hi Stephane,

On Mon, Oct 21, 2013 at 5:56 PM, Stéphane Desneux <
stephane.desneux at eurogiciel.fr> wrote:

> I saw in the launchpad code that the preloading uses dlopen() with the
> flag RTLD_NOW: this forces to load all unresolved symbols, thus the whole
> library tree.
>
> As the WRT launchpad executes this dlopen() for all binaries listed in
> /usr/share/aul/preload*.txt, this leads to loading nearly 200 libs:
> # for x in $( cat /usr/share/aul/preload*.txt); do ldd $x; done | awk
> '{print $1}' | sort | uniq | wc -l
> 202
>
> This is confirmed by reading the list of mapped files for the process:
> # readlink /proc/$(pgrep wrt_launchpad)/map_files/* | grep .so | sort |
> uniq | wc -l
> 205
>

Just out of curiosity: will the WRT launchpad daemon startup time improve
if you disable libs dlopen()?

This is important for the system startup time.

-- Mikko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20131022/9a704956/attachment.html>


More information about the Dev mailing list