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