Hi Stephane,
On Mon, Oct 21, 2013 at 5:56 PM, Stéphane Desneux <
[email protected]> 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
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev