Hi! I've installed Solaris 10 x86 (Core2Duo - x64) server, with Samba over ZFS RAID-Z. Samba is a part of Active Directory Domain. I've managed to join it to domain, to get the users and groups from A.D. and to translate them to Unix IDs. Everything works really good. Samba is installed from the packages from Solaris 10 DVD. Only problem I have is the performance :( It's disastrous! On 100Mbit Realtek NIC, Samba can manage around 4 MB/s if log level is set to very high (10). If I lower it to 0, then transfer rates go up to 7.5-8.5MB/s and they fluctuate in that interval. On the same network, there is a Debian Samba server, and transfer rates go high as 10.5-11.0MB/s. Next test I did was switching to Gbit interface. That increased transfer rates up to 25 MB/s, but that is still 5 times slower than the theoretical limit. So, next thing I've tried was to switch to Blastwave (CSW) Samba instead of SUNW Samba.... My transfer rates went back to normal immediately! It was a bit of shock for me... I could transfer about 10MB/s on 100Mbit interface, and around 45MB/s on 1Gbit interface. 45MB/s is theoretically limit of the workstation hard drive I was doing transfers from. Sun packaged (SUNW) Samba is 3.0.28 patched today to the latest patchlevel, and CSW uses 3.0.23. I used CSW Samba with the exact same smb.conf file. Only problem is - I never managed to connect CSW samba to ADS on my network :( So I gave up on that, and I'm facing a dilemma. Managers request full speed of the Samba server (comparable to Linux/Windows shares), but I just can't connect to Domain with CSW package. So I'm asking you guys - any ideas what could be the problem with SUNW Samba and performance? Is it just the 3.0.28 vs 3.0.23 issue, or what? Why is there so big difference in transfer rates? :( I'm puzzled... -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================| start fighting cancer -> http://www.worldcommunitygrid.org/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.samba.org/archive/samba/attachments/20080825/c02dba74/attachment.bin
> Hi! > > I've installed Solaris 10 x86 (Core2Duo - x64) server, with Samba over ZFS > RAID-Z. Samba is a part of Active Directory Domain. I've managed to join > it > to domain, to get the users and groups from A.D. and to translate them to > Unix IDs. Everything works really good. Samba is installed from the > packages > from Solaris 10 DVD.Remove all the old CSWsamba packages. Go get Samba 3.0.31 at http://www.blastwave.org/testing/samba-3.0.31,REV=2008.08.22-SunOS5.8-i386-CSW.pkg.bz2 Or try Samba 3.2.2 : http://www.blastwave.org/testing/samba-3.2.2,REV=2008.08.22-SunOS5.8-i386-CSW.pkg.gz Pick one .. only one. Install it. You need to create your own /etc/init.d/cswsamba .. but I suggest something like this : http://www.blastwave.org/dclarke/stuff/samba/samba_3x_cswsamba.txt then create your smb.conf in /opt/csw/etc/samba Let me know how it goes. Dennis Clarke
On Tuesday 26 August 2008 00:56:22 Dennis Clarke wrote:> > Hi! > > > > I've installed Solaris 10 x86 (Core2Duo - x64) server, with Samba over > > ZFS RAID-Z. Samba is a part of Active Directory Domain. I've managed to > > join it > > to domain, to get the users and groups from A.D. and to translate them to > > Unix IDs. Everything works really good. Samba is installed from the > > packages > > from Solaris 10 DVD.> Remove all the old CSWsamba packages.I already removed all the CSW packages... I installed them only to try the transfer rates with another Samba package. So you want to say that Sun packaged Samba has some problems and that's why the transfer rates are so messed up? But how can that be possible, I mean, Solaris is enterprise OS... And CSWSamba problem I had is the inability to join ADS.> Go get Samba 3.0.31 at > http://www.blastwave.org/testing/samba-3.0.31,REV=2008.08.22-SunOS5.8-i386- >CSW.pkg.bz2 > > Or try Samba 3.2.2 : > > http://www.blastwave.org/testing/samba-3.2.2,REV=2008.08.22-SunOS5.8-i386-C >SW.pkg.gz > > Pick one .. only one. > > Install it. > > You need to create your own /etc/init.d/cswsamba .. but I suggest > something like this : > > http://www.blastwave.org/dclarke/stuff/samba/samba_3x_cswsamba.txt > > then create your smb.conf in /opt/csw/etc/samba > > Let me know how it goes.I will try it, although I hate this much experimenting with the machine that's supposed to go into production :( If the stuff works I think I will need to reinstall it from scratch :( But the main question is still the same - what about Samba packaged by Sun? From the system administrators point of view, it's working absolutely awesome (SVC startup methods, winbind, wins, PAM integration, getent, kerberos)... And to migrate all that stuff to CSW - I don't have a good experience with CSW samba so far in that point of view :( -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================| start fighting cancer -> http://www.worldcommunitygrid.org/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.samba.org/archive/samba/attachments/20080826/a6f80316/attachment.bin
>> > Unix IDs. Everything works really good. Samba is installed from the >> > packages >> > from Solaris 10 DVD. > >> Remove all the old CSWsamba packages. > > I already removed all the CSW packages... I installed them only to try the > transfer rates with another Samba package.Well you certainly picked an old crusty build didn't you :-) Try something newer.> So you want to say that Sun packaged Samba has some problems and that's > why > the transfer rates are so messed up? But how can that be possible, I mean, > Solaris is enterprise OS... And CSWSamba problem I had is the inability to > join ADS.Right. Old news. Very very very old news. try a new build. see : http://www.blastwave.org/dclarke/blog/?q=node/114> I will try it, although I hate this much experimenting with the machine > that's > supposed to go into production :( If the stuff works I think I will need > to > reinstall it from scratch :(I run software from Blastwave.org Inc. on machines with thousands of users.> But the main question is still the same - what about Samba packaged by > Sun?What about it ? How is that working for you ? Really .. I am trying to work with you here Dennis
> On 8/26/2008, Jakov Sosic (jakov.sosic@srce.hr) wrote: >> OK, I've set it to 0, and still have issues with transfer rates being >> around >> 7.5-8.5 MB/s on a 100Mbit network. > > Max theortetical speed over a 100Mb network is 12.5MB, so 7.5-8.5 isn';t > all that bad...I wasn't even going to touch that issue. But here is some hard data .. over a 100Mbit/sec switch : dclarke@aequitas:~$ /opt/csw/sbin/smbd --version Version 3.2.2 dclarke@aequitas:~$ /opt/csw/bin/findsmb *=DMB +=LMB IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION --------------------------------------------------------------------- 192.168.35.42 TITAN +[CSWSAMBA] [Unix] [Samba 3.2.2] 192.168.35.147 AEQUITAS [CSWSAMBA] [Unix] [Samba 3.2.2] 192.168.35.251 FOSSIL [CSWSAMBA] [Unix] [Samba 3.2.2] dclarke@aequitas:~$ /opt/csw/bin/smbclient --user=smbtest //TITAN/share042 Enter smbtest's password: Domain=[TITAN] OS=[Unix] Server=[Samba 3.2.2] smb: \> cd backup/studio12 smb: \backup\studio12\> ls . D 0 Sat Aug 16 21:35:45 2008 .. D 0 Thu Aug 21 19:19:25 2008 SunStudio12ml-solaris-x86-200709-pkg.tar.bz2 A 601431338 Sat Aug 16 20:58:53 2008 SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 A 1194253206 Sat Aug 16 21:20:38 2008 63266 blocks of size 524288. 6825 blocks available smb: \backup\studio12\> get SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 getting file \backup\studio12\SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 of size 1194253206 as SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 (11145.3 kb/s) (average 11145.3 kb/s) smb: \backup\studio12\> quit dclarke@aequitas:~$ So is that okay over a 100Mbit/sec connection ? Dennis Clarke
> On Tuesday 26 August 2008 19:23:19 Charles Marcus wrote: > >> Max theortetical speed over a 100Mb network is 12.5MB, so 7.5-8.5 isn';t >> all that bad... > > Yes, I know that, but Windows Servers reach peak at around 10.5-11 MB/s. > Also, > If I switch to CSW Samba, transfer rates are almost exact (11MB/s). > > Then we switched server to 1Gbit interface, and Samba only manage to > preform > around 23MB/s. Theoretical limit is 125 MB/s, and again - CSW Samba on the > same machine in the same conditions transfers files at 44MB/s (which is > approximate limit of a local hard drive of a workstation). > > So obviously, Sun's Samba has some issues. > > On the other hand, I'm not satisfied with Blastwave's (CSW) Samba either. > It > has old SysV init script and not SVC method like it is supposed to on > Solaris > 10, and next problem is nmbd/winbindd don't have their scripts at all. I > have > to start them manually. I mean, CSW is a huge pain to maintain / configure > / > integrate but preforms well, while Sun's is completely oposite :( > > And I'm really keen to solve this one. I just can't get it - how can one > Samba > have issues with transfer rates, and another one not, with the same exact > configuration?Well you have my attention .. too bad you don't have a purchase order. :-) What are your problems with the new CSWsamba .. please be specific. Dennis Clarke
> Jakov Sosic wrote: >> And I'm really keen to solve this one. I just can't get it - how can one >> Samba >> have issues with transfer rates, and another one not, with the same >> exact >> configuration? >> >> > > I have noticed that Sun's samba build has some different/wrong default > settings that a 'standard' samba built on solaris. You might try > comparing the outputs of 'testparm -sv' from the two different sambas. > Perhaps some rogue default setting is affecting your performance. >This is what I have with Samba 3.2.2 on OpenSolaris 2008.11 : Sun Microsystems Inc. SunOS 5.11 snv_95 January 2008 root@aequitas:~# /opt/csw/bin/testparm -sv Load smb config files from /etc/opt/csw/samba/smb.conf Processing section "[printers]" Processing section "[os200805]" Processing section "[tmp]" Loaded services file OK. Server role: ROLE_STANDALONE [global] dos charset = CP850 unix charset = UTF-8 display charset = LOCALE workgroup = CSWSAMBA netbios name = AEQUITAS netbios aliases netbios scope server string = Samba 3.2.2 interfaces = rge0, lo0 bind interfaces only = No config backend = file security = USER auth methods encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes map to guest = Never null passwords = No obey pam restrictions = No password server = * smb passwd file = /etc/opt/csw/samba/private/smbpasswd private dir = /etc/opt/csw/samba/private passdb backend = smbpasswd algorithmic rid base = 1000 root directory guest account = nobody enable privileges = Yes pam password change = No passwd program passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No passwd chat timeout = 2 check password script username map password level = 0 username level = 0 unix password sync = No restrict anonymous = 0 lanman auth = No ntlm auth = Yes client NTLMv2 auth = No client lanman auth = No client plaintext auth = No preload modules use kerberos keytab = No log level = 0 syslog = 1 syslog only = No log file max log size = 5000 debug timestamp = Yes debug prefix timestamp = No debug hires timestamp = No debug pid = No debug uid = No debug class = No enable core files = Yes smb ports = 445 139 large readwrite = Yes max protocol = NT1 min protocol = CORE min receivefile size = 0 read raw = Yes write raw = Yes disable netbios = No reset on zero vc = No acl compatibility = auto defer sharing violations = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts wins host bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No unix extensions = Yes use spnego = Yes client signing = auto server signing = No client use spnego = Yes client ldap sasl wrapping = plain enable asu support = No svcctl list deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 30 max smbd processes = 0 paranoid server security = Yes max disk size = 0 max open files = 10000 socket options = TCP_NODELAY use mmap = Yes hostname lookups = No name cache timeout = 660 ctdbd socket cluster addresses clustering = No load printers = No printcap cache time = 750 printcap name = /dev/null cups server iprint server disable spoolss = Yes addport command enumports command addprinter command deleteprinter command show add printer wizard = Yes os2 driver map mangling method = hash2 mangle prefix = 1 max stat cache size = 256 stat cache = Yes machine password timeout = 604800 add user script rename user script delete user script add group script delete group script add user to group script delete user from group script set primary group script add machine script shutdown script abort shutdown script username map script logon script logon path = \\%N\%U\profile logon drive logon home = \\%N\%U domain logons = No os level = 20 lm announce = Auto lm interval = 60 preferred master = No local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server wins support = No wins hook kernel oplocks = Yes lock spin time = 200 oplock break wait time = 0 ldap admin dn ldap delete dn = No ldap group suffix ldap idmap suffix ldap machine suffix ldap passwd sync = no ldap replication sleep = 1000 ldap suffix ldap ssl ldap timeout = 15 ldap connection timeout = 2 ldap page size = 1024 ldap user suffix ldap debug level = 0 ldap debug threshold = 10 eventlog list add share command change share command delete share command config file preload lock directory = /var/opt/csw/samba/lock pid directory = /var/opt/csw/samba utmp directory wtmp directory utmp = No default service message command get quota command set quota command remote announce remote browse sync socket address = 0.0.0.0 homedir map afs username map afs token lifetime = 604800 log nt token command time offset = 0 NIS homedir = No registry shares = No usershare allow guests = No usershare max shares = 0 usershare owner only = Yes usershare path = /var/opt/csw/samba/lock/usershares usershare prefix allow list usershare prefix deny list usershare template share panic action host msdfs = Yes passdb expand explicit = No idmap domains idmap backend idmap alloc backend idmap cache time = 900 idmap negative cache time = 120 idmap uid idmap gid template homedir = /home/%D/%U template shell = /bin/false winbind separator = \ winbind cache time = 300 winbind enum users = No winbind enum groups = No winbind use default domain = No winbind trusted domains only = No winbind nested groups = Yes winbind expand groups = 1 winbind nss info = template winbind refresh tickets = No winbind offline logon = No winbind normalize names = No winbind rpc only = No comment path username invalid users valid users admin users read list write list printer admin force user force group read only = Yes acl check permissions = Yes acl group control = No acl map full control = Yes create mask = 0744 force create mode = 00 security mask = 0777 force security mode = 00 directory mask = 0755 force directory mode = 00 directory security mask = 0777 force directory security mode = 00 force unknown acl user = No inherit permissions = No inherit acls = No inherit owner = No guest only = No administrative share = No guest ok = No only user = No hosts allow = 192.168.35.0/24, 127. hosts deny = ALL allocation roundup size = 1048576 aio read size = 0 aio write size = 0 aio write behind ea support = No nt acl support = Yes profile acls = No map acl inherit = No afs share = No smb encrypt = auto block size = 1024 change notify = Yes directory name cache size = 100 kernel change notify = Yes max connections = 0 min print space = 0 strict allocate = No strict sync = No sync always = No use sendfile = No write cache size = 0 max reported print jobs = 0 max print jobs = 1000 printable = No printing = bsd cups options print command = lpr -r -P'%p' %s lpq command = lpq -P'%p' lprm command = lprm -P'%p' %j lppause command = lp -i %p-%j -H hold lpresume command = lp -i %p-%j -H resume queuepause command = disable %p queueresume command = enable %p printer name use client driver = No default devmode = Yes force printername = No printjob username = %U default case = lower case sensitive = Auto preserve case = Yes short preserve case = Yes mangling char = ~ hide dot files = Yes hide special files = No hide unreadable = No hide unwriteable files = No delete veto files = No veto files hide files veto oplock files map archive = Yes map hidden = No map system = No map readonly = yes mangled names = Yes store dos attributes = No dmapi support = No browseable = Yes blocking locks = Yes csc policy = manual fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = Auto share modes = Yes dfree cache time = 0 dfree command copy include preexec preexec close = No postexec root preexec root preexec close = No root postexec available = Yes volume fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes dont descend magic script magic output delete readonly = No dos filemode = No dos filetimes = Yes dos filetime resolution = No fake directory create times = No vfs objects msdfs root = No msdfs proxy [printers] comment = All Printers path = /var/spool/samba guest ok = Yes printable = Yes browseable = No [os200805] comment = writable share path = /export/nfs/samba/share/os200805 read only = No [tmp] comment = temporary files path = /tmp any issues seen there ? Note also ... root@aequitas:~# /opt/csw/sbin/smbd -b | head -21 Build environment: Built by: dclarke@titan Built on: Fri Aug 22 19:31:13 EDT 2008 Built using: cc Build host: SunOS titan 5.8 Generic_117351-55 i86pc i386 i86pc SRCDIR: /export/nfs/dclarke/build/samba/samba-3.2.2-build/../samba-3.2.2/source BUILDDIR: /export/nfs/dclarke/build/samba/samba-3.2.2-build Paths: SBINDIR: /opt/csw/sbin BINDIR: /opt/csw/bin SWATDIR: /opt/csw/share/samba/swat CONFIGFILE: /etc/opt/csw/samba/smb.conf LOGFILEBASE: /var/opt/csw/samba/state LMHOSTSFILE: /etc/opt/csw/samba/lmhosts LIBDIR: /opt/csw/lib SHLIBEXT: so LOCKDIR: /var/opt/csw/samba/lock PIDDIR: /var/opt/csw/samba SMB_PASSWD_FILE: /etc/opt/csw/samba/private/smbpasswd PRIVATE_DIR: /etc/opt/csw/samba/private root@aequitas:~# /opt/csw/sbin/smbd -b | tail -3 Builtin modules: pdb_ldap pdb_smbpasswd pdb_tdbsam rpc_lsarpc rpc_winreg rpc_initshutdown rpc_dssetup rpc_wkssvc rpc_svcctl2 rpc_ntsvcs2 rpc_netlogon rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog2 rpc_samr idmap_ldap idmap_tdb idmap_passdb idmap_nss nss_info_template auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin vfs_default vfs_solarisacl root@aequitas:~# Dennis Clarke http://www.blastwave.org/
> On 8/26/2008, Dennis Clarke (dclarke@blastwave.org) wrote: >> smb: \backup\studio12\> get >> SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 >> getting file >> \backup\studio12\SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 of size >> 1194253206 as SunStudio12ml-solaris-sparc-200709-pkg.tar.bz2 (11145.3 >> kb/s) (average 11145.3 kb/s) >> smb: \backup\studio12\> quit >> dclarke@aequitas:~$ >> >> So is that okay over a 100Mbit/sec connection ? > > Pretty danged good... but using 'get' or ftp is not a proper comparison > to file transfer using Windows clients. > > And of course, I wasn't saying there wasn't a problem, or that 7.5-8.5MB > was 'normal' and/or couldn't be improved upon with some tweaking... I > was simply pointing out that it wasn't quite 'disastrous', as he > initially suggested... >really .. I should move thousands of smaller files .. and then perhaps try a direct gigabit to gigabit connection between two samba servers. I could easily hook up an AMD Opteron here ( Solaris 10 ) to a Sun UltraSparc box with point to point gigabit just to see what the transfer rate maxxed out at. Any combination of switches and routers will result in a lower number so .. may as well do CAT6 end to end and point to point just to see what I get. Dennis
> On Wednesday 27 August 2008 15:17:34 John Drescher wrote: > >> > # /opt/csw/bin/net ads testjoin >> > [2008/08/27 14:37:58, 0] ../samba-3.2.2/source/param/params.c:(531) >> > params.c:OpenConfFile() - Unable to open configuration >> > file "/etc/opt/csw/samba/smb.conf": >> > No such file or directory >> > ADS support not compiled in >> >> So do you have your smb.conf at >> >> /etc/opt/csw/samba/smb.conf > > Wow, I didn't even notice that the configuration changed path. But anyway, > it > doesn't help - what's with this part: > > # /opt/csw/bin/net ads testjoin > [2008/08/27 15:42:53, 0] ../samba-3.2.2/source/param/loadparm.c:(7172) > Ignoring unknown parameter "realm" > ADS support not compiled inI will give you a Samba 3.2.3 package shortly .. Dennis