新进化论

道生一,一生二,二生三,三生万物。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

参考:

http://www.techrepublic.com/blog/linux-and-open-source/tuning-nfs-for-better-performance/

1.服务器端查看是否有瓶颈

# nfsstat -rc

Client rpc stats:

calls      retrans    authrefrsh

3409166    330        0

retrans过高,说明NFS线程数不足,一般安装缺省设置为8个.

centos 下/etc/rc.d/init.d/nfs

# Number of servers to be started by default
        [ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

修改后需要重启NFS

2.客户端mount优化

缺省为8KB,,增加到32KB block size

rsize=32768,wsize=32768,intr,noatime

noatime 这个参数来禁止记录最近一次访问时间戳

linux在每次文件被访问的时候会记录访问时间,查看方法

ls –lu

posted on 2014-07-26 09:19  岌岌可危  阅读(972)  评论(0编辑  收藏  举报