[Samba] Ldap performance

Adam Tauno WIlliams adam at morrison-ind.com
Mon Aug 30 14:25:08 GMT 2004


> >Is it normal to have 36 slapd process, each using 33 MB?
> I'm just guessing here, but that doesn't sound right.  I don't think you 
> should normally have any more than one, but maybe I'm mistaken.  I've 
> never seen it.

What he is almost certainly seeing is threads, not processes, and the
33Mb is cumulative not individual - they are all sharing the 33Mb.  This
is how Linux displays process information.

For that number of users I think 33Mb is SHOCKINGLY LOW.  You need to
tune the slapd cache size to let it use more memory.

Also 36 threads is insane,  your almost certainly swamping the
processor.  Limit your threads to something like 10 - 20 using the
threads directive in slapd.conf.

> >Another thing that may be slowing the ldap is that I need to use scope =sub
> >in my ldap.conf to find users and computers:
> So you're saying that in your ldap.conf you have things configured like so?
> nss_base_passwd        dc=homelan,dc=com,dc=br?sub

With the correct indexes and enough RAM it shouldn't really matter.



More information about the samba mailing list