Fedora Linux Support Community & Resources Center
  #1  
Old 2nd August 2017, 04:32 PM
steevithak Offline
Registered User
 
Join Date: Jun 2010
Posts: 12
linuxfedorachrome
File copy to/from NAS drive VERY slow

I've got a new QNAP TS-251+ NAS drive. Fedora detected it with no problem and everything works, I can copy files to and from it using the Gnome "Files" file manager. However, the copies are very, very slow. It looks like the top speed is around 1.2MB/sec. From my wife's Windows box, we're seeing speeds more like 60-70MB/sec.

Is this a known problem with Fedora's Samba support or can anyone recommend a method to speed up access to the NAS or further diagnose the problem?
Reply With Quote
  #2  
Old 3rd August 2017, 08:09 AM
flyingdutchman Offline
Registered User
 
Join Date: Jan 2015
Location: Al Ain, UAE
Posts: 724
linuxfedorafirefox
Re: File copy to/from NAS drive VERY slow

Run tcpdump and see what is going on.
__________________
--
Have fun!
http://www.aeronetworks.ca
Reply With Quote
  #3  
Old 3rd August 2017, 10:50 AM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 509
windows_7chrome
Re: File copy to/from NAS drive VERY slow

Apparently there's an option in the settings to allow NFS, I'd try mounting over NFS instead of Samba as it's more "unixy". Also play around with disabling the write cache and other performance settings on the NAS to see if any of then adversely effect performance.
Reply With Quote
  #4  
Old 3rd August 2017, 03:13 PM
steevithak Offline
Registered User
 
Join Date: Jun 2010
Posts: 12
linuxfedorachrome
Re: File copy to/from NAS drive VERY slow

After more googling, I finally found out why it's so slow. Apparently it's the fault of something called gvfsd-smb, some internal component of Gnome that sits between the file manager and the network layer. There are numerous bugs filed against it on all the major distros for making copy to and from Samba networks an order of magnitude slower than they should be. One of the bugs indicated the problem might have something to do with small buffer sizes hard-coded into the gvfsd-smb program. So it looks like there's nothing I can do for now but hope for bug fixes in a future Fedora version.

Thanks for the suggestion on using NFS but I'm not looking for a "more unixy" way to copy files, just want the normal way to be faster. I'll check the NAS settings but as I said, access is fast on the Windows box, so I think it's probably set correctly already.

---------- Post added at 09:13 AM ---------- Previous post was at 09:09 AM ----------

Here are a few of the bug reports that seem related:

https://bugzilla.redhat.com/show_bug.cgi?id=985823

https://bugs.launchpad.net/ubuntu/+s...s/+bug/1236619

https://askubuntu.com/questions/1944...mb-performance

https://mail.gnome.org/archives/gvfs.../msg00002.html
Reply With Quote
  #5  
Old 3rd August 2017, 03:32 PM
flyingdutchman Offline
Registered User
 
Join Date: Jan 2015
Location: Al Ain, UAE
Posts: 724
macosfirefox
Re: File copy to/from NAS drive VERY slow

Why are you poking around in the dark?

To measure is to know.

Ferinstance:
# tcpdump -nlX -i eth0 host servername and port 445

After a few minutes of just sitting and staring at the screen, you'll realize why it is slow and then you can fix it. It isn't rocket surgery.
__________________
--
Have fun!
http://www.aeronetworks.ca
Reply With Quote
  #6  
Old 3rd August 2017, 05:01 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 509
windows_7chrome
Re: File copy to/from NAS drive VERY slow

Quote:
Originally Posted by steevithak View Post
Thanks for the suggestion on using NFS but I'm not looking for a "more unixy" way to copy files, just want the normal way to be faster. I'll check the NAS settings but as I said, access is fast on the Windows box, so I think it's probably set correctly already.
Well that depends on your definition of "normal". "Samba is the standard Windows interoperability suite of programs for Linux and Unix", i.e: it's meant to allow copying between Windows and *nix. Considering you're copying from Linux to Linux I'd consider using NFS more normal than using samba.
Reply With Quote
  #7  
Old 5th August 2017, 11:02 PM
steevithak Offline
Registered User
 
Join Date: Jun 2010
Posts: 12
linuxfedorachrome
Re: File copy to/from NAS drive VERY slow

I found by far the fastest solution. The NAS drive has a USB 3.0 port on the front of it. So I can copy files from my Fedora box to an external drive via USB, then move the drive to the NAS box and copy them onto it. That method gets me copy speeds of 100MB/sec+ (not counting the extra second or two to move the cable over). But it's 100x faster than Fedora can move the files directly over ethernet to the box. Fortunately, this is mostly a one-time thing to get large numbers of files onto the NAS. I'll only need to access the files occasionally from my Fedora box so Fedora's super-slow SAMBA speeds won't be a big hardship.
Reply With Quote
  #8  
Old 9th August 2017, 01:00 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 509
windows_7chrome
Re: File copy to/from NAS drive VERY slow

Surely ticking the "enable NFS" check box in the NAS web menus and mounting the drive with a "mount user@192.168.N.N:/path /mnt/path" command is easier than copying files via a external USB drive?
Reply With Quote
  #9  
Old 9th August 2017, 04:59 PM
steevithak Offline
Registered User
 
Join Date: Jun 2010
Posts: 12
linuxfedorachrome
Re: File copy to/from NAS drive VERY slow

Quote:
Originally Posted by HaydnH View Post
Surely ticking the "enable NFS" check box in the NAS web menus and mounting the drive with a "mount user@192.168.N.N:/path /mnt/path" command is easier than copying files via a external USB drive?
Sorry, probably my fault for not providing more details - the NAS is on a home network and also accessed by my wife's Windows box, so I want to keep the configuration as simple as possible for working easily with all kinds of computers and it seems Windows, the QNAP NAS, and the Fedora "Files" File Manager all default to using SAMBA for discovering and accessing network storage devices, so that seemed like the way to go. Also, my preference is to stick with what's possible using the Fedora GUI and not have to start doing a lot of command line stuff. That's the same reasons I didn't follow up with the other suggestion that I start debugging the Fedora networking code using a TCP/IP dump program - I'm not interested in coding up a patch for the bug right now, I just wanted to find a quick solution to get my files loaded. Also, I haven't used NFS in many years and remember next to nothing about it, so didn't want to spend a lot of time figuring out how to get Fedora to discover and mount an NFS drive.

Once I get caught up with other things on my ToDo list, maybe I'll revisit this and take a look at doing proper diagnostics and see if I help contribute towards a bug fix for the underlying problem in the gvfsd-smb code.
Reply With Quote
Reply

Tags
copy , drive , file , nas , samba , slow , smb , to or from

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
slow to copy file to pendrive kiki2009 Using Fedora 0 24th August 2011 11:52 AM
SATA File Copy Slow mndar Hardware & Laptops 5 11th January 2009 08:54 PM
horribly slow file copy seeker010 Using Fedora 17 8th October 2008 05:58 AM
Slow file transfer for USB external drive. rgaelzer Hardware & Laptops 0 5th March 2007 04:31 PM
tooo slow when copy file from ieee1394 DVD Recorder perigee Hardware & Laptops 1 10th February 2005 01:01 AM


Current GMT-time: 20:52 (Sunday, 22-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat