Public bug reported:

MC is very slow to start (several seconds) when current directory is on
a CIFS/SMB share. Also the subshell / menu switch (with C-o) is very
slow when switching back to the menu, which is annoying.

Using ''strace'' I could narrow down the problem to a call to stat(2):

$ cd /smb/lacie-cloudbox/myshare

$ mount|grep lacie-cloudbox
//lacie-cloudbox/myshare on /smb/lacie-cloudbox/myshare type cifs (rw)

$ strace -r -tt -o /tmp/mc.strace mc
$ grep -v 0.0 /tmp/mc.strace
     3.310479 stat("/smb/lacie-cloudbox/myshare", {st_mode=S_IFDIR|0755, 
st_size=0, ...}) = 0

Note that this is a long due issue (was already in 12.04 and probably before), 
but it is only lately that I could narrow down the problem as highlighted above.

$ lsb_release -rd
Description:    Ubuntu 14.04.5 LTS
Release:        14.04

$ apt-cache policy mc
  Installed: 3:4.8.11-1
  Candidate: 3:4.8.11-1
  Version table:
 *** 3:4.8.11-1 0
        500 trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

** Affects: mc (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Slow start when current directory is on CIFS/SMB share

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to