NFS性能优化

参考:linux

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

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

# nfsstat -rc 优化

Client rpc stats: 线程

calls      retrans    authrefrsh code

3409166    330        0 orm

retrans太高,说明NFS线程数不足,通常安装缺省设置为8个. server

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

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

修改后须要重启NFS

2.客户端mount优化

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

rsize=32768,wsize=32768,intr,noatime

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

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

ls –lu

相关文章
相关标签/搜索