Menu

#29 Increase nfs rsize

closed
nobody
nfs (1)
2015-05-02
2015-04-11
mike7s
No

In stock firmware nfs plugin allows rsize up to 65536.
In Alt-F I've got
cat /proc/fs/nfsd/max_block_size
8192

rsize tuning can increase nfs performance.
Could you please increase rsize to 65536?

PS.Synology has rsize=131072

Discussion

  • João Cardoso

    João Cardoso - 2015-04-17

    The nfs max block size is set according to the server's memory amount; on a dns-325/320l, which have 256MB of memory, it is set to 32KB.

    Increasing this will reduce the amount of memory available for other OS sub-systems, such as page/file caching, and the overall effect can be negative (even if a simple file transfer "benchmark" shows that throughput has increased). Global system performance has to be taken into account.

    If however you want to increase it, stop NFS, edit /etc/init.d/S60nfs changing

        if ! test -f /proc/fs/nfsd/exports; then
            mount -t nfsd nfsd /proc/fs/nfsd
            echo 65536 > /proc/fs/nfsd/max_block_size # add this line and your value
        fi
    

    and restart NFS

     
  • mike7s

    mike7s - 2015-04-17

    Got it, thanks a lot.

    PS. May be add to web interface :)

     
  • João Cardoso

    João Cardoso - 2015-05-02

    close by svn commit 3301:

    NFS webUI: add an entry to specify the max NFS block size
    closes ticket https://sourceforge.net/p/alt-f/featurerequests/29/

     
  • João Cardoso

    João Cardoso - 2015-05-02
    • status: open --> closed
     

Log in to post a comment.