Rowland Penny
2017-Aug-17 08:00 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
On Wed, 16 Aug 2017 23:28:08 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> I HATE these auto send keys.. Did i tell that already.. > ( see below ) > > -----Oorspronkelijk bericht----- > > Van: L.P.H. van Belle [mailto:belle at bazuin.nl] > > Verzonden: woensdag 16 augustus 2017 23:22 > > Aan: 'samba at lists.samba.org' > > Onderwerp: RE: [Samba] extremely low performance on Samba > > 4.2.14-Debian > > > > Hai Emmanuel, > > > > But ive re-read the complete thread. > > Its strange that the old machine is so much faster. > > In thinging a bit, and it can go two ways.. > > I'm trowing in things i get in my head based on experiance > > aka wild guesses, but review it i suggest. > > > > Samba bug/problem in settings combinations ( or wait for > > multi threaded samba 4.7. and test that) > > > > Hardware/linux (driver/setting) combination, i'll come to > > that later on.. > > > > For samba. > > Can try with the following to see if one of these is slowing > > things down. > > In thinking in (kernel higher = better cifs (smb protocol > > support), and maybe improvements in xfs support (i haven't > > checked that). > > And check with modinfo the nic driver. > > I want to know if it possible to see the (by samba) detected > > interface speed. ( and mtu/tcp size rwin ). > > > > Smb.conf suggestions, and test order. > > Change: > > server signing = auto > > Test, > > Then again add: > > ntlm auth = no > > Test, > > And im questioning these 2. > > In global you set. > > restrict anonymous 2 > > > > In the share. > > guest ok = no > > > > The google translater makes crap off: This parameter > > nullifies the benefits of setting restrict anonymous = 2 :-/ > > Are these to settings conflicting or not.. In not sure here. > > > > From man smb.conf > > guest ok (S) > > > > If this parameter is yes for a service, then no > > password is required to connect to the service. Privileges > > will be those of the guest account. > > This parameter nullifies the benefits of setting > > restrict anonymous = 2 > > See the section below on security for more > > information about this option. > > Default: guest ok = no > > > > > > About the hardware/linux. > > > > Did you install/setup the hardware, (not judging your > > knowlidge, my thoughts) When you installed it, did you check > > the pci-e bus and the irq relations in the bios. > > It is possible, the 40G nic is shareing the bus with the raid > > 6 contoller. > > That can slow down things. > > Bios raid/hdds/mainboard up to date, so changelog review cant harm. > > Is the nic using firmware? > > The output of : > ethtool -i > > So few thing, i can think of i would check. > Its a pain, special when its far, the samba options are thing you > might be able to remotely check. Maybe it helps a bit. > > Greetz, > > Louis > > > > >I would suggest that the OP tries this smb.conf: [global] netbios name = storiq-111 server string = %h server (Samba, Debian) security = ADS workgroup = TEST realm = AD.TEST.COM winbind refresh tickets = yes winbind use default domain = yes winbind cache time = 7200 winbind offline logon = yes idmap config *:backend = tdb idmap config *:range = 2000-9999 idmap config TEST:backend = rid idmap config TEST:range = 10000-50000000 template shell = /bin/bash template homedir = /mnt/raid/%u log file = /var/log/samba/smbd.log max log size = 50 vfs objects = acl_xattr map acl inherit = yes store dos attributes = yes [test_tr] # Set ACLs from Windows comment = Utilisateurs de test_tr path = /mnt/raid/test_tr read only = no It doesn't have any default settings or any settings that might slow things down (I also do not understand the reason behind having smb.conf in three sections.) Rowland
Emmanuel Florac
2017-Aug-28 13:33 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Le Thu, 17 Aug 2017 09:00:22 +0100 Rowland Penny via samba <samba at lists.samba.org> écrivait:> It doesn't have any default settings or any settings that might slow > things down (I also do not understand the reason behind having > smb.conf in three sections.) >Finally by using Rowland's configuration, performance went up to normal numbers. We went as far as replacing the entire server first, in vain... It would be interesting to know which parameters absolutely kill performance this way! -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20170828/677e45f3/attachment.sig>
L.P.H. van Belle
2017-Aug-28 13:51 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Hai, Thank you for reporting this back. Very welkom and good to heard you fixed it.> It would be interesting to know which parameters absolutely > kill performance this way!Yes, that would be great to know which parameters killed the performance. Do you have exports of the old config and the current config? You could diff them and then maybe a dev can tell us, since i've see this question more now. A diff is at least some extra info. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: Emmanuel Florac [mailto:eflorac at intellique.com] > Verzonden: maandag 28 augustus 2017 15:33 > Aan: Rowland Penny via samba > CC: Rowland Penny; L.P.H. van Belle > Onderwerp: Re: [Samba] extremely low performance on Samba > 4.2.14-Debian > > Le Thu, 17 Aug 2017 09:00:22 +0100 > Rowland Penny via samba <samba at lists.samba.org> écrivait: > > > It doesn't have any default settings or any settings that > might slow > > things down (I also do not understand the reason behind having > > smb.conf in three sections.) > > > > Finally by using Rowland's configuration, performance went up > to normal numbers. We went as far as replacing the entire > server first, in vain... > > It would be interesting to know which parameters absolutely > kill performance this way! > > > -- > -------------------------------------------------------------- > ---------- > Emmanuel Florac | Direction technique > | Intellique > | <eflorac at intellique.com> > | +33 1 78 94 84 02 > -------------------------------------------------------------- > ---------- >
Rowland Penny
2017-Aug-28 14:12 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
On Mon, 28 Aug 2017 15:51:42 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hai, > > Thank you for reporting this back. Very welkom and good to heard you > fixed it. > > > It would be interesting to know which parameters absolutely > > kill performance this way! > > Yes, that would be great to know which parameters killed the > performance. Do you have exports of the old config and the current > config? You could diff them and then maybe a dev can tell us, since > i've see this question more now. A diff is at least some extra info. >My moneys on these two lines: winbind enum users = yes winbind enum groups = yes The others are either defaults (so they are still there, just not showing), lines the OP added to try and fix the problem or lines that shouldn't slow anything down. Rowland
L.P.H. van Belle
2017-Aug-28 14:26 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Yes, its an option, i was in the believe he did already set that. :-/> My moneys on these two lines: > > winbind enum users = yes > winbind enum groups = yes > > The others are either defaults (so they are still there, just > not showing), lines the OP added to try and fix the problem > or lines that shouldn't slow anything down.But compaired to his starting smb.conf that was not a "default" settings. What i think is also very interesting and is related to. Number of users / winbind enum users Number of groups / winbind enum groups Number of computers / ? How many groups are in groups and whats the max depth of the nested groups. / winbind expand groups = Win Clients, XP/Vista/Win7/8/8.1/10 ? Linux/Unix clients ? Very valueble info for the devs i think. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland Penny via samba > Verzonden: maandag 28 augustus 2017 16:12 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] extremely low performance on Samba > 4.2.14-Debian > > On Mon, 28 Aug 2017 15:51:42 +0200 > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > > > Hai, > > > > Thank you for reporting this back. Very welkom and good to > heard you > > fixed it. > > > > > It would be interesting to know which parameters absolutely kill > > > performance this way! > > > > Yes, that would be great to know which parameters killed the > > performance. Do you have exports of the old config and the current > > config? You could diff them and then maybe a dev can tell us, since > > i've see this question more now. A diff is at least some extra info. > > > > My moneys on these two lines: > > winbind enum users = yes > winbind enum groups = yes > > The others are either defaults (so they are still there, just > not showing), lines the OP added to try and fix the problem > or lines that shouldn't slow anything down. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >