[PATCH] Improvements to traffic_replay user generation

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Thu Oct 18 22:18:53 UTC 2018

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.


More information about the samba-technical mailing list