修改 /etc/samba/smb.conf,加入
[global]
read size = 512
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=512 SO_SNDBUF=512 IPTOS_LOWDELAY
getwd cache = yes
follow symlinks = no
wide links = no
read raw = yes
write raw = yes
large readwrite = yes
getwd cache = yes
strict locking = no
fake oplocks = yes
[global]
read size = 512
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=512 SO_SNDBUF=512 IPTOS_LOWDELAY
getwd cache = yes
follow symlinks = no
wide links = no
read raw = yes
write raw = yes
large readwrite = yes
getwd cache = yes
strict locking = no
fake oplocks = yes
oplocks = no
此后速度从30kb升到1M多点