Slow start when current directory is on CIFS/SMB share
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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-
$ mount|grep lacie-cloudbox
//lacie-
$ strace -r -tt -o /tmp/mc.strace mc
$ grep -v 0.0 /tmp/mc.strace
3.310479 stat("/
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
mc:
Installed: 3:4.8.11-1
Candidate: 3:4.8.11-1
Version table:
*** 3:4.8.11-1 0
500 http://
100 /var/lib/
So, why the stat call is taking so long, is it really an mc problem, i.e. if you just make the call outside of mc, does it also take a long time?