samba性能调优,调优后,性能增加30%


global中增加下面内容。

[global]
    use sendfile = yes
    write raw = yes
    read raw = yes
    max xmit = 65535
    aio read size = 16384
    aio write size = 16384
    enable core files = no
    load printers = no

    max open files = 65535
    dead time = 15
    getwd cache = yes

    case sensitive = true
    default case = lower
    preserve case = no
    short prserve case = no

mount时按如下参数mount

-o async,cache=loose,vers=3.0,actimeo=60

其中

cache=loose在高版本的samba上是默认的,低版本默认使用strict。

actimeo参数影响较大,可以根据实际情况调整此数值。

vers=1.0在低版本的内核上性能表现比SMB2,SMB3要好一些。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM