[Samba] ldbsearch performance and tuning...
Andrew Bartlett
abartlet at samba.org
Tue Aug 28 19:33:41 UTC 2018
On Tue, 2018-08-28 at 18:28 +0200, Marco Gaiarin via samba wrote:
> I'm still on samba4.5, sorry me.
Fix that first.
> I've done some (bash) scripting around ldbsearch, but i've found some
> performance and 'lock' trouble.
Correct, Samba before 4.7 has very poor unindexed search performance,
due to a bug.
> a) query seems 'slow'. If i user paged result (--paged) coud achive
> better performance? It is a 'network' optimization only, right? eg:
>
> ldbsearch --paged -H /var/lib/samba/private/sam.ldb ...
>
> is totally unuseful, right?
Correct, this would just increase the load.
>
> b) in a domain member (so, network queries) i've found some
> 'ldbsearch'
> processes stalled. I was forced to kill them.
> There's some way to prevent that? Eg, via '--socket-options=' or
> '--controls=' options?
I would need more information on that. Fixing the server to run a
current Samba would likely fix that.
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
More information about the samba
mailing list