Results 1 to 7 of 7

Thread: Poor NFS Performance

  1. #1
    Join Date
    Dec 2005
    Beans
    13

    Question Poor NFS Performance

    Hi all.

    I just built a new NAS (Ubuntu Server 14.04) and I am trying to copy the stuff from my old NAS (Ubuntu Server 11.10) to the new one and the NFS performance is very disappointing. The old NAS could always sustain a few hundred Mbit/sec over NFS to my client machines but as I am copying data to the new server I seem to be averaging only about 140Mbit/sec (17.5 MB/sec).

    The CPU cores on both boxes are largely idle and the gigabit link of course is only about 14% utilized.

    Any ideas on what might be wrong and how I can speed this up?

    Thanks!

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,928
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Poor NFS Performance

    Here's a couple of widely-used speedups for NFS:

    Use async in the NFS options on the server.

    Use "rsize=32768,wsize=32768" in the options on the client.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Dec 2005
    Beans
    13

    Re: Poor NFS Performance

    Thanks. Progress! I am now up to 190 MBit/sec.

  4. #4
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    1,158
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Poor NFS Performance

    Are you transferring thousands of small files? I find them usually slow to transfer.
    The Philippine Team
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe.

  5. #5
    Join Date
    Dec 2005
    Beans
    13

    Re: Poor NFS Performance

    A lot of the data I am copying right now is in Apple Sparse Bundle images. A Mac sees them as a single file but they are stored on the filesystem as a folder that is composed of 8MB "bands". That may be contributing to the slow transfer...

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,928
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Poor NFS Performance

    Can you create a compressed archive of those files and just ship that over the wire?

    Since my earlier suggestions seemed to help, you can try bumping up the rsize and wsize parameters to 65536 and see if that helps. I'm not sure what the maximum should be. I just know that the default value of 8192 bytes was designed to work with the original 10 megabit Ethernet standard. With current speeds at 100 or 1000 Mbit, you can use larger blocks; I just don't know how large. On wired 100BaseT connections I've used 65536.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    1,158
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Poor NFS Performance

    8MB files should be transferred fast enough. I'm pertaining to thousands of files with about ~10KB each. Compressing them to a single file and transferring is much much faster.
    The Philippine Team
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe.

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
  •