Re: SSHFS makes the ROOT launch speed slow?

From: Eduard Avetisyan <Eduard.Avetisyan_at_desy.de>
Date: Wed, 2 Feb 2011 20:04:12 +0100

Hi Axel,

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)

and only 1 line with "access" keyword:

access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)

I suspect sshfs is not optimized for such a regime of bulk "open"-s, since running root on a remote NFS share doesn't cause any slowdowns.

Cheers

        Eduard

On Tue, 1 Feb 2011, Axel Naumann wrote:

> Hi,
>
> strace tells me it tries to access:
>
> 19830 getcwd("PWD", 8192) = 17
> 19830 access("PWD/./RFIO", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./RFIO", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./DCache", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./DCache", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./DCache", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./RAliEn", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./Netx", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./Net", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./HDFS", R_OK) = -1 ENOENT (No such file or directory)
> 19830 access("PWD/./rootalias.C", R_OK) = -1 ENOENT (No such file or
> directory)
> 19830 access("PWD/./rootlogon.C", R_OK) = -1 ENOENT (No such file or
> directory)
> 19830 access("PWD/./rootlogoff.C", R_OK) = -1 ENOENT (No such file or
> directory)
>
> Are those 14 accesses causing it?
>
> Cheers, Axel.
>
> OKUMURA, Akira wrote on 02/01/2011 03:40 PM:
> > Hello Axel,
> >
> > ROOT is installed locally.
> >
> > Regards,
> >
> > --
> > OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu}
> > Institute of Space and Astronautical Science (ISAS/JAXA)
> > Now at KIPAC/SLAC/Stanford
> > Varian Physics #306, 382 Via Pueblo Mall, MC 4060
> > Stanford, CA 94305-4060
> > TEL 650-736-0971/FAX 650-724-5065
> > Skype : okumura.akira
> >
> > On 2011/02/01, at 3:33, Axel Naumann wrote:
> >
> >> Hi,
> >>
> >> You could install ROOT locally and access your files via SSHFS.
> >>
> >> Cheers, Axel.
> >>
> >> OKUMURA, Akira wrote on 01/27/2011 07:52 PM:
> >>> Hello ROOTers,
> >>>
> >>> I often use Macfusion (http://macfusionapp.org/) and SSHFS (http://fuse.sourceforge.net/sshfs.html) on my Mac to mount a remote file system via SSH, because X11 is very slow with a slow network connection.
> >>>
> >>> My problem is that the ROOT launch speed is slow when I launch ROOT in an SSHFS directory.
> >>>
> >>> This is the result of "time" command on the local file system. It is fast enough.
> >>> $ time root -b -q
> >>> root [0]
> >>> root -l -b -q 0.09s user 0.03s system 97% cpu 0.127 total
> >>>
> >>> And this is the result when I launch ROOT in a directory which is mounted via SSHFS.
> >>> $ time root -b -q
> >>> root [0]
> >>> root -l -b -q 0.09s user 0.04s system 11% cpu 1.143 total
> >>>
> >>> In this example, it takes only 1.1 second because the value was measured from my office where LAN speed is fast. But when I do it from my home, it takes 5 to 10 seconds. In worst case, it takes several ten seconds.
> >>>
> >>> I suppose ROOT does something in a directory when being launch, and hence, it takes long time in the case that SSHFS speed is low.
> >>>
> >>> Is there any hack to get the launch speed faster?
> >>>
> >>> ROOT 5.28.00
> >>> OS X 10.6.6
> >>> Macfusion 2.0.3
> >>>
> >>> Regards,
> >>>
> >>> --
> >>> OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu}
> >>> Institute of Space and Astronautical Science (ISAS/JAXA)
> >>> Now at KIPAC/SLAC/Stanford
> >>> Varian Physics #306, 382 Via Pueblo Mall, MC 4060
> >>> Stanford, CA 94305-4060
> >>> TEL 650-736-0971/FAX 650-724-5065
> >>> Skype : okumura.akira
> >>>
> >>>
> >>
> >
> >
>
>
Received on Wed Feb 02 2011 - 20:04:25 CET

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