There is a Samba Server in my departmant, we share files on it, but is very slow when we write to it , the speed just 50~800KByte/s. but in normal , it got 10MB/s
here are some config files:
nas4free:/# cat /var/etc/smb.conf
[global]
encrypt passwords = yes
netbios name = nas4free
workgroup = WORKGROUP
server string = NAS4Free Server
security = user
max protocol = NT1
dns proxy = no
# Settings to enhance performance:
use sendfile = yes
strict locking = no
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
deadtime = 15
getwd cache = yes
socket options = TCP_NODELAY SO_SNDBUF=128480 SO_RCVBUF=128480
# End of performance section
unix charset = UTF-8
ea support = yes
local master = no
domain master = no
preferred master = no
os level = 0
time server = no
guest account = ftp
map to guest = Never
display charset = LOCALE
max log size = 100
syslog only = yes
syslog = 1
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
dos charset = CP936
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = tdbsam
idmap config * : backend = tdb
idmap config * : range = 10000-39999
aio read size = 8192
aio write size = 8192
bind interfaces only = yes
interfaces = em0
fake oplocks = yes
follow symlinks = no
getwd cache = yes
large readwrite = yes
max xmit = 65536
oplocks = no
wide links = no
write cache size = 65536
[xtb]
comment = xtb NAS
path = /mnt
writeable = yes
printable = no
veto files = /.snap/.sujournal/
hide dot files = yes
guest ok = no
inherit permissions = yes
vfs objects =
nas4free:/# cat /etc/hosts
::1 localhost localhost.local
127.0.0.1 localhost localhost.local
10.94.128.60 nas4free.local nas4free
Platform OS FreeBSD 9.1-RELEASE (reldate 901000)
hardware platform Pentium(R) Dual-Core CPU E6500 @ 2.93GHz 上的 x86-embedded
system LENOVO To be filled by O.E.M. Bios: 5CKT18AUS 04/22/2010
nas4free:/# uname -a
FreeBSD nas4free.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r244224M: Fri Dec 14 19:53:16 JST 2012 aoyama@nas4free.local:/usr/obj/nas4free/usr/src/sys/NAS4FREE-i386 i386
Code: Select all
nas4free:/# dd if=/dev/zero of=/mnt/xtb/test.zero bs=1024k count=10000
10000+0 records in
10000+0 records out
10485760000 bytes transferred in 56.409349 secs (185886918 bytes/sec)
Code: Select all
nas4free:/# iperf -c 10.94.128.60 -fM -i1
------------------------------------------------------------
Client connecting to 10.94.128.60, TCP port 5001
TCP window size: 0.26 MByte (default)
------------------------------------------------------------
[ 3] local 10.94.128.60 port 63645 connected with 10.94.128.60 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 2021 MBytes 2021 MBytes/sec
[ 3] 1.0- 2.0 sec 1914 MBytes 1914 MBytes/sec
[ 3] 2.0- 3.0 sec 1927 MBytes 1927 MBytes/sec
[ 3] 3.0- 4.0 sec 1919 MBytes 1919 MBytes/sec
[ 3] 4.0- 5.0 sec 1957 MBytes 1957 MBytes/sec
[ 3] 5.0- 6.0 sec 1920 MBytes 1920 MBytes/sec
[ 3] 6.0- 7.0 sec 2058 MBytes 2058 MBytes/sec
[ 3] 7.0- 8.0 sec 2126 MBytes 2126 MBytes/sec
[ 3] 8.0- 9.0 sec 2117 MBytes 2117 MBytes/sec
[ 3] 9.0-10.0 sec 2110 MBytes 2110 MBytes/sec
[ 3] 0.0-10.0 sec 20071 MBytes 2007 MBytes/sec
waiting for your response onlie, thanks.

