Results 1 to 8 of 8

Thread: Extremely slow NAS transfer

  1. #1
    Join Date
    Aug 2008
    Beans
    21

    Extremely slow NFS transfer

    Hello,

    I'm having some trouble with very poor performance with some NFS shares that I have. I'm running an ubuntu 12.04 LTS 64-bit Desktop with nfs-kernel-server 1.2.0. I have a Volume called /Videos that is formatted with btrfs. I'm typically transferring files larger than 500MB, and when doing so, i'm getting speeds of around 250kb/s (according to rsync) The machine that I'm transferring from is an ubuntu 12.10 Desktop as well, and the share is mounted via fstab. When I unmount the share, and mount it as a cifs share, it transferes very fast, around 15MB/s which is a huge improvement over mounting it as NFS. Both machines are connected to a 10/100 switch. For testing purposes, I tried connecting them with a crossover cable to rule out switch problems and the results were the same. Any help would be appreciated. Here is my /etc/exports line

    /Videos 10.30.50.0/24(rw,sync,no_root_squash,no_subtree_check)

    Thanks,
    Last edited by dryicebomb; January 30th, 2013 at 07:30 PM.

  2. #2
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Extremely slow NAS transfer

    have you optimized your NFS server and client settings? http://nfs.sourceforge.net/nfs-howto/ar01s05.html

    PS you're referring to the NFS protocol (network file system) as NAS. NAS is merely an abbreviation for "network attached storage". A NAS is a device and not a protocol. NAS can have various protocols like ftp, nfs, samba, sftp. Just a heads up so you refer to it correclty in the future.
    Last edited by dannyboy79; January 30th, 2013 at 06:46 PM.

  3. #3
    Join Date
    Aug 2008
    Beans
    21

    Re: Extremely slow NAS transfer

    I have not tried the optimization yet. I will try that tonight. Thank you.

  4. #4
    Join Date
    Aug 2008
    Beans
    21

    Re: Extremely slow NAS transfer

    Quote Originally Posted by dannyboy79 View Post
    have you optimized your NFS server and client settings? http://nfs.sourceforge.net/nfs-howto/ar01s05.html

    PS you're referring to the NFS protocol (network file system) as NAS. NAS is merely an abbreviation for "network attached storage". A NAS is a device and not a protocol. NAS can have various protocols like ftp, nfs, samba, sftp. Just a heads up so you refer to it correclty in the future.
    Your right, I have edited my original post as to not confuse others.

  5. #5
    Join Date
    Aug 2008
    Beans
    21

    Re: Extremely slow NFS transfer

    Quote Originally Posted by dannyboy79 View Post
    have you optimized your NFS server and client settings? http://nfs.sourceforge.net/nfs-howto/ar01s05.html

    PS you're referring to the NFS protocol (network file system) as NAS. NAS is merely an abbreviation for "network attached storage". A NAS is a device and not a protocol. NAS can have various protocols like ftp, nfs, samba, sftp. Just a heads up so you refer to it correclty in the future.
    Your right, I have edited my original post as to not confuse others.

  6. #6
    Join Date
    Aug 2008
    Beans
    21

    Re: Extremely slow NAS transfer

    That guide helped quite a bit, Also after changing it from sync to async things really started moving quite fast.

    Thank you for the help

  7. #7
    Join Date
    Dec 2009
    Location
    SillyCon Valley
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Extremely slow NFS transfer

    I duplicated your set up, and your results. With NFS I see a very fast transfer across the directly connected wire that slows down eventually to bits per hour with large files.

    I can not seem to find out what it is either. Have you made any progress?
    Running 10.10 with 64 bit desktop with cloud.... Wish I could get desktop in the cloud working.....

  8. #8
    Join Date
    Aug 2008
    Beans
    21

    Re: Extremely slow NAS transfer

    saejin,

    What ultimately fixed the issue for me was a small change in my /etc/exports file. I changed sync to async, and that really increased the speed. Please read section 5.9 for the differences between sync and async, There is also other good information about optimizing NFS in this article. http://nfs.sourceforge.net/nfs-howto/ar01s05.html

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •