funnyprinter
Dabbler
- Joined
- Mar 14, 2014
- Messages
- 18
How to configure CIFS that local and domain users have fast transfer speeds?
I'm setting up a new FreeNAS. I do have massive performance issues using CIFS / SMB / Samba in combination with an Active Directory (AD) structure. Local as well as domain users transfer data really slow. There as guest user is fine.
Transfer Speeds
CIFS / SMB
User ---------- write ------------ read
LocalUser ---- 21.3MB/s -------- 21.8MB/s
Domain ------- 19.7MB/s -------- 19.4MB/s
Guest----------105.1MB/s ------- 101.2MB/s
Mac via AFP with authentication against Active directory as a comparision:
write: 109.7MB/s
read: 108.9MB/s
SMB4.conf
TOP while file access via authentciated local root
TOP while transfering as guest
Freenas Reporting
https://www.dropbox.com/s/2s59qcrlas8icna/freenas-performance-issues-loggedin-stats.png?dl=0
Hardware
I'm setting up a new FreeNAS. I do have massive performance issues using CIFS / SMB / Samba in combination with an Active Directory (AD) structure. Local as well as domain users transfer data really slow. There as guest user is fine.
Transfer Speeds
CIFS / SMB
User ---------- write ------------ read
LocalUser ---- 21.3MB/s -------- 21.8MB/s
Domain ------- 19.7MB/s -------- 19.4MB/s
Guest----------105.1MB/s ------- 101.2MB/s
Mac via AFP with authentication against Active directory as a comparision:
write: 109.7MB/s
read: 108.9MB/s
SMB4.conf
Code:
[global]
server max protocol = SMB3_11
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 1
max log size = 51200
max open files = 588197
logging = file
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
server string = FreeNAS File Server
ea support = yes
store dos attributes = yes
lm announce = yes
acl allow execute always = true
dos filemode = yes
multicast dns register = yes
domain logons = no
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = member server
workgroup = MYDOMAIN
realm = MYDOMAIN.LAN
security = ADS
client use spnego = yes
cache directory = /var/tmp/.cache/.samba
local master = no
domain master = no
preferred master = no
ads dns update = yes
winbind cache time = 7200
winbind offline logon = yes
winbind enum users = yes
winbind enum groups = yes
winbind nested groups = yes
winbind use default domain = no
winbind refresh tickets = yes
idmap config MYDOMAIN: backend = rid
idmap config MYDOMAIN: range = 20000-90000000
allow trusted domains = no
client ldap sasl wrapping = plain
template shell = /bin/sh
template homedir = /home/%D/%U
netbios name = S-FREENAS
pid directory = /var/run/samba
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1
[temp]
path = /mnt/zfs03/temp
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
vfs objects = zfs_space zfsacl aio_pthread streams_xattr catia fruit
hide dot files = yes
guest ok = yes
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare
TOP while file access via authentciated local root
Code:
last pid: 46255; load averages: 0.81, 0.49, 0.39 up 2+01:33:28 10:49:23 45 processes: 3 running, 42 sleeping CPU: 11.7% user, 0.0% nice, 0.9% system, 0.0% interrupt, 87.4% idle Mem: 273M Active, 3125M Inact, 15G Wired, 230M Cache, 734M Free ARC: 14G Total, 985M MFU, 12G MRU, 290K Anon, 63M Header, 202M Other Swap: 8192M Total, 148K Used, 8191M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 46144 root 1 102 0 337M 29744K CPU4 4 1:46 100.00% smbd 2443 root 1 -52 r0 6304K 2272K CPU1 1 13:39 0.10% watchdogd 11480 root 12 21 0 241M 20348K nanslp 1 18:20 0.00% collectd 4655 root 6 21 0 409M 183M select 7 7:11 0.00% python2.7 19466 root 1 52 0 237M 64044K select 7 2:46 0.00% python2.7 2779 root 1 20 0 36500K 18216K select 5 0:56 0.00% ntpd 1919 root 1 20 0 79388K 5024K kqread 3 0:16 0.00% syslog-ng 1230 root 1 20 0 13772K 4964K select 6 0:03 0.00% devd 5894 root 1 52 0 167M 48784K ttyin 2 0:01 0.00% python2.7 35361 root 4 52 0 169M 45904K usem 3 0:01 0.00% python2.7 5707 root 1 20 0 29176K 836K nanslp 7 0:01 0.00% cron 4384 root 1 32 10 17064K 1168K wait 4 0:01 0.00% sh 5693 root 1 20 0 51708K 3028K select 4 0:01 0.00% zfsd 36386 root 1 20 0 105M 8912K select 4 0:01 0.00% afpd 12778 www 1 20 0 40356K 3596K kqread 5 0:01 0.00% nginx 4361 root 1 20 0 30728K 1988K nanslp 6 0:00 0.00% smartd 36384 root 2 20 0 32932K 3000K kqread 7 0:00 0.00% netatalk 43965 root 1 20 0 409M 23608K select 3 0:00 0.00% winbindd 32798 root 1 20 0 109M 7072K select 2 0:00 0.00% sshd 44480 root 1 20 0 411M 23008K select 7 0:00 0.00% winbindd 46200 root 1 20 0 34500K 3372K CPU0 0 0:00 0.00% top 4167 root 1 47 0 71684K 6204K select 6 0:00 0.00% sshd 44409 root 1 20 0 416M 22860K select 7 0:00 0.00% winbindd 35358 nobody 1 20 0 25472K 2916K select 7 0:00 0.00% mdnsd 32801 root 1 20 0 36152K 4088K pause 7 0:00 0.00% csh 43956 root 1 20 0 235M 16612K select 3 0:00 0.00% nmbd 43960 root 1 20 0 288M 23116K select 3 0:00 0.00% smbd 43964 root 1 20 0 282M 22488K select 6 0:00 0.00% smbd 4560 root 1 20 0 40356K 2976K pause 5 0:00 0.00% nginx 36387 root 1 20 0 34808K 2856K select 1 0:00 0.00% cnid_metad 4856 root 1 20 0 14460K 472K sigwai 7 0:00 0.00% daemon 5896 root 1 52 0 14488K 2004K ttyin 3 0:00 0.00% getty 5900 root 1 52 0 14488K 2004K ttyin 4 0:00 0.00% getty 5897 root 1 52 0 14488K 2004K ttyin 0 0:00 0.00% getty 5901 root 1 52 0 14488K 2004K ttyin 5 0:00 0.00% getty 5895 root 1 52 0 14488K 2004K ttyin 1 0:00 0.00% getty 5898 root 1 52 0 14488K 2004K ttyin 6 0:00 0.00% getty 5899 root 1 52 0 14488K 2004K ttyin 7 0:00 0.00% getty 46156 root 1 20 0 410M 23628K select 4 0:00 0.00% winbindd 17982 root 1 52 0 8228K 1884K nanslp 5 0:00 0.00% sleep 46238 root 1 32 10 8228K 1884K nanslp 5 0:00 0.00% sleep 1918 root 1 52 0 38416K 0K wait 1 0:00 0.00% <syslog-ng> 4667 messagebus 1 52 0 27500K 2416K select 5 0:00 0.00% dbus-daemon 17979 root 1 52 0 17064K 2328K wait 0 0:00 0.00% sh 1217 root 1 52 0 16708K 2056K select 2 0:00 0.00% mouse
TOP while transfering as guest
Code:
last pid: 46439; load averages: 0.91, 0.68, 0.49 up 2+01:37:13 10:53:08 45 processes: 1 running, 44 sleeping CPU: 0.8% user, 0.0% nice, 3.6% system, 1.9% interrupt, 93.7% idle Mem: 273M Active, 3125M Inact, 15G Wired, 230M Cache, 734M Free ARC: 14G Total, 1332M MFU, 13G MRU, 8994K Anon, 64M Header, 203M Other Swap: 8192M Total, 148K Used, 8191M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 46407 root 1 46 0 337M 29760K select 4 0:14 38.09% smbd 11480 root 12 21 0 241M 20380K nanslp 3 18:22 0.20% collectd 19466 root 1 52 0 237M 64044K select 6 2:46 0.20% python2.7 2443 root 1 -52 r0 6304K 2272K nanslp 2 13:40 0.10% watchdogd 4655 root 6 20 0 409M 183M select 6 7:15 0.00% python2.7 2779 root 1 20 0 36500K 18216K select 3 0:56 0.00% ntpd
Freenas Reporting
https://www.dropbox.com/s/2s59qcrlas8icna/freenas-performance-issues-loggedin-stats.png?dl=0
Hardware
- AsRock C2750D4I
- Intel Octa Core Avoton C2750 (8 Cores a 2.4 GHz. Turbo up to 2.6GHz)
- 16GB DDR3 1600 ECC Ram
- 4 WD Red Pro 4TB (2 stripped mirrors)
- 1GB/s Lan
- FreeNAS OS on on 32GB USB2.0 stick
Last edited: