Re: SSHFS makes the ROOT launch speed slow?

From: Konstantin Olchanski <olchansk_at_triumf.ca>
Date: Wed, 2 Feb 2011 11:22:29 -0800


On Wed, Feb 02, 2011 at 08:04:12PM +0100, Eduard Avetisyan wrote:
>
> The same strace produces ~130 calls in my case, which include but are not
> limited to libraries like:
> open("tls/i686/sse2/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("tls/i686/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("tls/sse2/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("tls/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("i686/sse2/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("i686/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("sse2/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
>

You have "." in your LD_LIBRARY_PATH. Remove it and those syscalls will go away.

In fact, every system library and searched inside every LD_LIBRARY_PATH element (NxM), so by shortening LD_LIBRARY_PATH you will reduce the number of syscalls and speedup application startup.

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada
Received on Wed Feb 02 2011 - 20:22:38 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 02 2011 - 23:50:01 CET