NFS的性能调整(二)
几种常用UNIX环境NETAPP针对数据库使用NFS的情况下,推荐使用的mount参数,
Linux:
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3
Solaris:
rw,bg,hard,intr,rsize=32768,wsize=32768,proto=tcp,forcedirectio,noac,vers=3
AIX:
cio,rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768
bg 是指background挂接,如果挂接失败将重试安装。
hard 是指当NFS服务器没有响应的时候客户端会继续重试直到NFS服务器响应为止。与之相对,soft指没响应的时候系统会返回一个错误。
proto是指使用TCP还是UDP协议,当然是使用TCP了。
intr 允许通知中断一个NFS调用。当服务器没有应答需要放弃的时候有用处。 这点LINUX的要求比较奇怪。
forcedirectio,cio这些是特定厂商自己提供的功能。都是为了更好的提供数据的数据完整性,和数据吞吐等而设定的。非数据库使用方式,不建议使用。
---------------------------------------------------
Concurrent I/O provides the best performance for Oracle Databases since it:
! Bypasses Virtual Memory Manager (VMM) module code
! Avoids caching of file data in the kernel
! Avoids contention on the per file write lock that blocks readers, therefore relying on the
applications to do file access synchronization
Concurrent I/O is enabled with the “cio” mount option. More information on “cio” is available in the IBM
paper Improving Database Performance With AIX Concurrent I/O.1
While that paper describes concurrent I/O in relation to the JFS2 filesystem, the concepts are
applicable to NFS starting with AIX release 5.3 ML-03.
摘自IBM资料,关于CIO
--------------------------------------------------
acregmin=n:设定最小的在文件更新之前cache时间,默认是3
acregmax=n:设定最大的在文件更新之前cache时间,默认是60
acdirmin=n:设定最小的在目录更新之前cache时间,默认是30
acdirmax=n:设定最大的在目录更新之前cache时间,默认是60
actimeo=n:将acregmin、acregmax、acdirmin、acdirmax设定为同一个数值,默认是没有启用。
LINUX的actimeo参数
---------------------------------------------------
[ 本帖最后由 ender 于 2008-7-7 23:10 编辑 ]