On Wed, Feb 02, 2011 at 08:34:52PM +0100, Eduard Avetisyan wrote:
> > 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)
> >
> > You have "." in your LD_LIBRARY_PATH. Remove it and those syscalls will go away.
>
> Good hint! Changing the LD_LIBRARY_PATH from ":$ROOTSYS/lib" to simply
> "$ROOTSYS/lib" (just a colon difference) reduced the startup time from 12s
> to 8s, so by 1/3. Still, it's way slower than a local startup time of 0.1s.
>
You are still making the system search for every system library in $ROOTSYS/lib, which I understand is a slow SSHFS filesystem.
You can try to put the system library path (/lib, etc) in front of $ROOTSYS/lib, so the loader quickly finds the system libraries and does not touch SSHFS.
-- 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, CanadaReceived on Wed Feb 02 2011 - 20:42:52 CET
This archive was generated by hypermail 2.2.0 : Wed Feb 02 2011 - 23:50:01 CET