Andrew Bartlett
2018-Jan-16 22:45 UTC
[Samba] Samba46 Listen queue overflow in FreeBSD 11.1
On Tue, 2018-01-16 at 22:56 +0100, Peter Eriksson via samba wrote:> There are a number of rather low listen() queue limits in Samba which we also ran into on our pretty busy (around 300-500 users/server) Samba servers, also on FreeBSD 11.1 (six servers with 256GB RAM, 2x10Gbit ethernet, 140TB of storage). > > Please find enclosed a patch we use to up the limits (quite a bit).Sadly the list ate your patch. Patches are best sent to samba- technical in any case. Sorry, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Peter Eriksson
2018-Jan-17 16:20 UTC
[Samba] Samba46 Listen queue overflow in FreeBSD 11.1
Ah. Anyway, the patch is pretty straight forward (and you could probably write a better one :-). But anyway, here’s a link to a web page where it can be downloaded from in case someone else needs it / wants to have a look: https://people.ifm.liu.se/peter/patches/samba/ <https://people.ifm.liu.se/peter/patches/samba/> (socket_listen_backlog.patch) It’s based on Samba 4.7.3 currently. — [Lı.U] System Administrator ITI-NET IT.LiU.SE +46-13-28 2786> On 16 Jan 2018, at 23:45, Andrew Bartlett <abartlet at samba.org> wrote: > > On Tue, 2018-01-16 at 22:56 +0100, Peter Eriksson via samba wrote: >> There are a number of rather low listen() queue limits in Samba which we also ran into on our pretty busy (around 300-500 users/server) Samba servers, also on FreeBSD 11.1 (six servers with 256GB RAM, 2x10Gbit ethernet, 140TB of storage). >> >> Please find enclosed a patch we use to up the limits (quite a bit). > > Sadly the list ate your patch. Patches are best sent to samba- > technical in any case. > > Sorry, > > Andrew Bartlett > -- > Andrew Bartlett http://samba.org/~abartlet/ > Authentication Developer, Samba Team http://samba.org > Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba >
Wallace Barrow
2018-Jan-19 17:07 UTC
[Samba] Samba46 Listen queue overflow in FreeBSD 11.1
> > On Tue, 2018-01-16 at 22:56 +0100, Peter Eriksson via samba wrote: > >> There are a number of rather low listen() queue limits in Samba which we also ran into on our pretty busy (around 300-500 users/server) Samba servers, also on FreeBSD 11.1 (six servers with 256GB RAM, 2x10Gbit ethernet, 140TB of storage). > >> > >> Please find enclosed a patch we use to up the limits (quite a bit). > > > > Sadly the list ate your patch. Patches are best sent to samba- > > technical in any case. > > > > Sorry, > > > > Andrew Bartlett > > -- > > Andrew Bartlett http://samba.org/~abartlet/ > > Authentication Developer, Samba Team http://samba.org > > Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/sambaPeter, thank you for that patch. I will have to try it out. Can you submit it to the samba-technical team? Andrew, what are the steps for making this into a Samba release? We would really benefit from being able to change and tune different queue depths in winbind, etc, to fix our issue. Thank you!
Timur I. Bakeyev
2018-Jan-20 10:58 UTC
[Samba] Samba46 Listen queue overflow in FreeBSD 11.1
While ago I had an idea to look into that area and, possibly, to add support for the: accf_data – buffer incoming connections until data arrives>that should allow a bit better control over the listen wait queue and offload the userspace load. With regards, Timur Bakeyev. On Wed, Jan 17, 2018 at 5:20 PM, Peter Eriksson via samba < samba at lists.samba.org> wrote:> Ah. Anyway, the patch is pretty straight forward (and you could probably > write a better one :-). But anyway, here’s a link to a web page where it > can be downloaded from in case someone else needs it / wants to have a look: > > https://people.ifm.liu.se/peter/patches/samba/ < > https://people.ifm.liu.se/peter/patches/samba/> > > (socket_listen_backlog.patch) > > It’s based on Samba 4.7.3 currently. > > — > [Lı.U] System Administrator ITI-NET IT.LiU.SE +46-13-28 2786 > > > On 16 Jan 2018, at 23:45, Andrew Bartlett <abartlet at samba.org> wrote: > > > > On Tue, 2018-01-16 at 22:56 +0100, Peter Eriksson via samba wrote: > >> There are a number of rather low listen() queue limits in Samba which > we also ran into on our pretty busy (around 300-500 users/server) Samba > servers, also on FreeBSD 11.1 (six servers with 256GB RAM, 2x10Gbit > ethernet, 140TB of storage). > >> > >> Please find enclosed a patch we use to up the limits (quite a bit). > > > > Sadly the list ate your patch. Patches are best sent to samba- > > technical in any case. > > > > Sorry, > > > > Andrew Bartlett > > -- > > Andrew Bartlett http://samba.org/~abartlet/ > > Authentication Developer, Samba Team http://samba.org > > Samba Developer, Catalyst IT http://catalyst.net.nz/ > services/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Apparently Analagous Threads
- Samba46 Listen queue overflow in FreeBSD 11.1
- Samba46 Listen queue overflow in FreeBSD 11.1
- Samba46 Listen queue overflow in FreeBSD 11.1
- Assert failure in 2.2.20: imap-fetch.c:554 (ctx->client->output_cmd_lock || ctx->client->output_cmd_lock == cmd)
- gencache.tdb growing and growing and...