Menu

#47 smbnetfs is slow because of libsecret

v1.0 (example)
closed-fixed
nobody
None
5
2019-03-02
2019-01-11
No

Checked this bug in Ubuntu 18.04 on smbnetfs version 0.6.1-1.

I do not have any services for libsecret and not use it. Flag use_libsecret does not work any more, so I cannot turn it off (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892839)

Changing libsecret_timeout from default 500 to 1 millisecond in my rsync test reduce rsync time from more than 5 minutes to about 2 seconds. Simple ls test also shows time difference, but slow down is much less

andrey@localhost:~$ smbnetfs $HOME/local/net/smb -o auto_unmount
andrey@localhost:~$ touch ~/local/net/smb/test/testfile

andrey@localhost:~$ (fusermount -u $HOME/local/net/smb && smbnetfs $HOME/local/net/smb -o auto_unmount,libsecret_timeout=500)
andrey@localhost:~$ time (cd ~/local/net/smb/test; ls -l --time-style=full-iso testfile)
-rw-r--r-- 1 andrey andrey 0 2019-01-11 15:22:46.1543584048 +0500 testfile

real    0m1,388s
user    0m0,000s
sys     0m0,005s
andrey@localhost:~$ (fusermount -u $HOME/local/net/smb && smbnetfs $HOME/local/net/smb -o auto_unmount,libsecret_timeout=1)
andrey@localhost:~$ time (cd ~/local/net/smb/test; ls -l --time-style=full-iso testfile)
-rw-r--r-- 1 andrey andrey 0 2019-01-11 15:22:46.-1409252112 +0500testfile

real    0m0,906s
user    0m0,001s
sys     0m0,003s

Discussion

  • Mikhail Kshevetskiy

    that was caused by missprint. now it fixed

     
  • Mikhail Kshevetskiy

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB