This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Very slow speed when we write to Samba Server

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
adam
NewUser
NewUser
Posts: 2
Joined: 03 Sep 2013 11:38
Status: Offline

Very slow speed when we write to Samba Server

Post by adam »

Hi all,
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
[/size]
waiting for your response onlie, thanks.

adam
NewUser
NewUser
Posts: 2
Joined: 03 Sep 2013 11:38
Status: Offline

Re: Very slow speed when we write to Samba Server

Post by adam »

I had found the reason of the N4F speed problem, so I write it down here, hope to help somebody.
One day I check the configurations in the Weblogin, I found that the "Media" droplist shows "100baseTX"
and the "MTU" unmber has been set to,I changed the "Media" droplist to "autoselect" and leave the "MTU" in blank, and then reboot N4F, the issue was resolve,
the speed is about 12MB/s .
The full path is "Network" --> "LAN Management" --> "Advanced Configuration" --> "MTU"(leave blank)
--> "Media"(autoselect)
reboot.
Hope to help you.

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 282
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: Very slow speed when we write to Samba Server

Post by lindsay »

There is another solution to it as i discovered, because when you install windows xp,vista or 7 it only install the latest driver wich is approved by microsoft.
I discovered a huge increase by updating the drivers to latest with driverupdate wich you find for download.

The program discover your system with mainboard and everything, if you get the full version it downloads fast and install automatically.
Free version manually install + you have 38KB/s download rate
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

Post Reply

Return to “CIFS/SMB (Samba)”