[PATCH] Improvements to traffic_replay user generation

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Oct 19 04:03:11 UTC 2018


On Fri, Oct 19, 2018 at 11:18:53AM +1300, Douglas Bagnall via samba-technical wrote:
> On 18/10/18 7:53 PM, Volker Lendecke via samba-technical wrote:
> > On Thu, Oct 18, 2018 at 04:54:54PM +1300, Tim Beale via samba-technical wrote:
> >> We can create user accounts much faster if the LDB connection talks
> >> directly to the local sam.ldb file rather than going via LDAP. This
> > 
> > When reading such a comment I always ask -- why? :-)
> > 
> > Second question: How much slower is LDAP. And, is there anything we
> > can tune here?
> 
> The last paragraph of the commit message suggests an answer:
> 
> >>> Note that you also need to use '--option="ldb:nosync = true"' to get
> >>> the improvement in performance.
> 
> Using the local file is faster because we can avoid a lot of fsyncing.
> You wouldn't want this on a live server, so it isn't available to ldap.
> 
> The answer to "why would you want to do this in the first place?" is we
> are building large test domains to thrash in various ways, and we end up
> spending a lot of time watching users being created.

Ok, that makes sense. Thanks for the explanation. I was just worried
that we have systematic inefficiencies in the LDAP server that could
be optimized.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list