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

2023-05-08,,

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要好一些。

samba性能调优,调优后,性能增加30%的相关教程结束。

《samba性能调优,调优后,性能增加30%.doc》

下载本文的Word格式文档,以方便收藏与打印。