Emmanuel Florac
2017-Aug-10 18:39 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Le Thu, 10 Aug 2017 18:46:12 +0100 Rowland Penny via samba <samba at lists.samba.org> écrivait:> 4.2.x is EOL as far as Samba is concerned, there have been a lot of > changes since 4.2.* came out. > > Can I suggest you go here: http://apt.van-belle.nl/ > > You can get a much more recent version there, 4.6.7OK I'll try it, but that doesn't really explain why it's so slow, while it's completely OK on other similar or slower machines... Actually it's the first time ever, with any Samba version (including 3.6.x) that I have such a bad performance on a 10GigE equipped system. I even usually got better performance with bonded Gb interfaces 8 or 9 years ago... -- ------------------------------------------------------------------------ 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/20170810/311ff7bf/attachment.sig>
Rowland Penny
2017-Aug-10 19:35 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
On Thu, 10 Aug 2017 20:39:45 +0200 Emmanuel Florac <eflorac at intellique.com> wrote:> Le Thu, 10 Aug 2017 18:46:12 +0100 > Rowland Penny via samba <samba at lists.samba.org> écrivait: > > > 4.2.x is EOL as far as Samba is concerned, there have been a lot of > > changes since 4.2.* came out. > > > > Can I suggest you go here: http://apt.van-belle.nl/ > > > > You can get a much more recent version there, 4.6.7 > > OK I'll try it, but that doesn't really explain why it's so slow, > while it's completely OK on other similar or slower machines... > Actually it's the first time ever, with any Samba version (including > 3.6.x) that I have such a bad performance on a 10GigE equipped > system. I even usually got better performance with bonded Gb > interfaces 8 or 9 years ago... >As I said, there have been a lot of changes to Samba since 4.2.x, some of these changes have been aimed at getting Samba to work faster and, as far as I am aware, there are more in the upcoming 4.7.0. Can I also suggest you remove these lines: winbind enum users = yes winbind enum groups = yes You do not need them and guess what, they slow Samba down. Rowland
Stefan G. Weichinger
2017-Aug-11 07:26 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Am 2017-08-10 um 21:35 schrieb Rowland Penny via samba:> Can I also suggest you remove these lines: > > winbind enum users = yes > winbind enum groups = yes > > You do not need them and guess what, they slow Samba down.I also have these lines on a DM server, I assume because I took them with me over the years ... may I also remove them?
L.P.H. van Belle
2017-Aug-11 08:16 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Hai, I got a personal notice of a user, which server was running 4.2.14 (debian jessie), he only got 10-14Mb/s, after upgrading to my 4.6.6 package (now 4.6.7, he is now getting the full gigabit connection speed. Now if you dont want to upgrade you can try set the nic speed in smb.conf. ( man smb.conf ) interface[;key1=value1[,key2=value2[...]]] Known keys are speed, capability, and if_index. Speed is specified in bits per second. And i must say, this should not be needed, but its possible the speed is wrongly detected. I was not able to determin why this was on his server, i had access to console for this one. (its a college of me) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland Penny via samba > Verzonden: donderdag 10 augustus 2017 21:35 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] extremely low performance on Samba > 4.2.14-Debian > > On Thu, 10 Aug 2017 20:39:45 +0200 > Emmanuel Florac <eflorac at intellique.com> wrote: > > > Le Thu, 10 Aug 2017 18:46:12 +0100 > > Rowland Penny via samba <samba at lists.samba.org> écrivait: > > > > > 4.2.x is EOL as far as Samba is concerned, there have > been a lot of > > > changes since 4.2.* came out. > > > > > > Can I suggest you go here: http://apt.van-belle.nl/ > > > > > > You can get a much more recent version there, 4.6.7 > > > > OK I'll try it, but that doesn't really explain why it's so slow, > > while it's completely OK on other similar or slower machines... > > Actually it's the first time ever, with any Samba version (including > > 3.6.x) that I have such a bad performance on a 10GigE > equipped system. > > I even usually got better performance with bonded Gb > interfaces 8 or 9 > > years ago... > > > > As I said, there have been a lot of changes to Samba since > 4.2.x, some of these changes have been aimed at getting Samba > to work faster and, as far as I am aware, there are more in > the upcoming 4.7.0. > > Can I also suggest you remove these lines: > > winbind enum users = yes > winbind enum groups = yes > > You do not need them and guess what, they slow Samba down. > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Andreas Heinlein
2017-Aug-11 10:26 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Am 11.08.2017 um 10:16 schrieb L.P.H. van Belle via samba:> Hai, > > I got a personal notice of a user, which server was running 4.2.14 (debian jessie), > he only got 10-14Mb/s, after upgrading to my 4.6.6 package (now 4.6.7, he is now getting the full gigabit connection speed. > > Now if you dont want to upgrade you can try set the nic speed in smb.conf. > ( man smb.conf ) > interface[;key1=value1[,key2=value2[...]]] > > Known keys are speed, capability, and if_index. Speed is specified in bits per second. > > And i must say, this should not be needed, but its possible the speed is wrongly detected. > I was not able to determin why this was on his server, i had access to console for this one. > (its a college of me) > >Hello, Just for curiosity, what about version 4.5.8? This is the version included in current Debian stable (stretch). bye, Andreas
L.P.H. van Belle
2017-Aug-11 12:57 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Hai andres, No, in this case it was the 4.2.14 (latest) from debian jessie. Ive not checked 4.5.8 on stretch, i skipped that version. Wat is suspect is, the following, based on experiance and things i noticed. As far i know this involves Ubuntu 12.x 14.x and debian Wheezy/Jessie (dont know about ubuntu 16.x and 17.x ) if bind interfaces is set with : eth0 lo Somethings samba fails to start, solution, set ipadres for eth0 ( this is why i always set the ipnumbers) Now, add the slow network speed problem to this. This smells to me its a wrong startup order, or samba started before all interfaces where up or able to detect nic speed. But i did not put much effort in the correct solution, change to ip and it works always. Debian Stretch, as fas i see now, due to much better boot order of systemd. So on Stretch, this problem is (probely) not happening, i did not test it. (yet) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Andreas Heinlein via samba > Verzonden: vrijdag 11 augustus 2017 12:27 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] extremely low performance on Samba > 4.2.14-Debian > > Am 11.08.2017 um 10:16 schrieb L.P.H. van Belle via samba: > > Hai, > > > > I got a personal notice of a user, which server was running 4.2.14 > > (debian jessie), he only got 10-14Mb/s, after upgrading to > my 4.6.6 package (now 4.6.7, he is now getting the full > gigabit connection speed. > > > > Now if you dont want to upgrade you can try set the nic > speed in smb.conf. > > ( man smb.conf ) > > interface[;key1=value1[,key2=value2[...]]] > > > > Known keys are speed, capability, and if_index. > Speed is specified in bits per second. > > > > And i must say, this should not be needed, but its possible > the speed is wrongly detected. > > I was not able to determin why this was on his server, i > had access to console for this one. > > (its a college of me) > > > > > Hello, > > Just for curiosity, what about version 4.5.8? This is the > version included in current Debian stable (stretch). > > bye, > Andreas > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Emmanuel Florac
2017-Aug-11 15:32 UTC
[Samba] extremely low performance on Samba 4.2.14-Debian
Le Fri, 11 Aug 2017 10:16:32 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> écrivait:> Hai, > > I got a personal notice of a user, which server was running 4.2.14 > (debian jessie), he only got 10-14Mb/s, after upgrading to my 4.6.6 > package (now 4.6.7, he is now getting the full gigabit connection > speed. > > Now if you dont want to upgrade you can try set the nic speed in > smb.conf. ( man smb.conf ) > interface[;key1=value1[,key2=value2[...]]] > > Known keys are speed, capability, and if_index. Speed is > specified in bits per second. > > And i must say, this should not be needed, but its possible the speed > is wrongly detected. I was not able to determin why this was on his > server, i had access to console for this one. (its a college of me) >Well there used to be an "interface" line but I removed it as unnecessary; we didn't want to restrict Samba to any particular interface anyway. However it's possible that the 40GigE interface is the culprit; and it's the only special thing that the machine carries... However the weird, weird thing is the CPU consumption. I've never seen smbd capped by CPU power but on very old or very small machines.... -- ------------------------------------------------------------------------ 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/20170811/08d418f4/attachment.sig>