After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738535 - SMB backend around 70x slower than direct mount
SMB backend around 70x slower than direct mount
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: smb backend
1.20.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 762384 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-10-14 15:43 UTC by Keir Lawson
Modified: 2017-12-22 08:36 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12



Description Keir Lawson 2014-10-14 15:43:24 UTC
Copying a file from our office NAS using nautilus to mount it (I assume via GVFS) gives a transfer speed of around 1.6MBps, switching to a direct mount using the mount command gives a transfer speed of around 100MBps.  I am using Fedora 20.
Comment 1 Ondrej Holy 2014-10-14 16:14:56 UTC
What version of gvfs are you using? 

GVfs 1.18.3 and newer have some speed improvements if you are using fuse daemon:
https://bugzilla.gnome.org/show_bug.cgi?id=652540
Comment 2 Keir Lawson 2014-10-14 16:20:19 UTC
I'm using version 1.20.3
Comment 3 Ondrej Holy 2014-10-14 16:33:05 UTC
Are you testing the speed against gio api, or fuse daemon? Because the fuse daemon is just fallback for application, which doesn't use gio api and it is pretty limited...

See the discussion:
https://mail.gnome.org/archives/gvfs-list/2013-October/thread.html#00002
Comment 4 Keir Lawson 2014-10-14 16:36:00 UTC
I don't know, how would I check?
Comment 5 Ondrej Holy 2014-10-14 16:42:32 UTC
You are using gvfs natively if you are using nautilus or gvfs cmd utility like:
gvfs-copy smb:///...

You are using fuse if you are copying the files like:
cp /run/user/1000/gvfs/smb\:/...
Comment 6 Keir Lawson 2014-10-14 16:53:24 UTC
Ok I am using nautilus so gvfs
Comment 7 Ross Lagerwall 2014-10-14 17:24:45 UTC
Hey, please try using smbget to copy the file and report what kind of speed you get so we can try and isolate where the problem is.

Also, do you have any custom smb.conf configuration?

This kind of speed is not normal :-)
Comment 8 Keir Lawson 2014-10-15 09:14:13 UTC
I tried smbget, I'm getting similar speeds to with nautilus, ie 1.6MBps

I haven't customised my smb.conf
Comment 9 Ross Lagerwall 2014-10-15 12:24:09 UTC
In that case, please open a bug against Samba at https://bugzilla.samba.org/ describing your setup the speed you're getting with smbget.

Thanks
Comment 10 Ondrej Holy 2016-02-22 08:29:28 UTC
Here is the link for the samba bug:
https://bugzilla.samba.org/show_bug.cgi?id=10879
Comment 11 Ondrej Holy 2016-02-26 08:06:37 UTC
*** Bug 762384 has been marked as a duplicate of this bug. ***
Comment 12 inf3rno 2016-02-26 13:11:03 UTC
I read on many forums that people use CIFS mount instead of GVFS because of this issue. I do the same currently, because I have 4-5x more speed with that (19MB/s vs 86MB/s). Wouldn't it be possible to use the "smbclient" implementation instead of the "smbget" implementation in the background? According to my measures starting the file transfer with "smbclient" results the same speed as a CIFS mount.
Comment 13 Ross Lagerwall 2016-02-26 14:15:01 UTC
(In reply to inf3rno from comment #12)
> I read on many forums that people use CIFS mount instead of GVFS because of
> this issue. I do the same currently, because I have 4-5x more speed with
> that (19MB/s vs 86MB/s). Wouldn't it be possible to use the "smbclient"
> implementation instead of the "smbget" implementation in the background?
> According to my measures starting the file transfer with "smbclient" results
> the same speed as a CIFS mount.

That would not be trivial. However, I have a patch to libsmbclient (which is what GVFS uses) to fix this problem, but it is not yet upstream.
Comment 14 inf3rno 2016-02-27 05:47:54 UTC
(In reply to Ross Lagerwall from comment #13)
> (In reply to inf3rno from comment #12)
> > I read on many forums that people use CIFS mount instead of GVFS because of
> > this issue. I do the same currently, because I have 4-5x more speed with
> > that (19MB/s vs 86MB/s). Wouldn't it be possible to use the "smbclient"
> > implementation instead of the "smbget" implementation in the background?
> > According to my measures starting the file transfer with "smbclient" results
> > the same speed as a CIFS mount.
> 
> That would not be trivial. However, I have a patch to libsmbclient (which is
> what GVFS uses) to fix this problem, but it is not yet upstream.

Okay! I hope it will be fixed soon.
Comment 15 inf3rno 2017-12-22 08:36:27 UTC
This bug is reported by samba too: https://bugzilla.samba.org/show_bug.cgi?id=10879 Nobody is assigned to it, and it still has the NEW flag after 3 years, so I guess it will never be fixed...