Hunting down bottlenecks in samba 2.2.5 + OpenLDAP

Fredrik Ohrn ohrn at chl.chalmers.se
Tue Jul 30 12:05:02 GMT 2002


Hello!

We have switched over our unix and samba account databases from smbpasswd
+ NIS to LDAP.

On a small scale everything worked fine but now when we are placing it
into production we are running into performance troubles.

The main problem is that some shares take an insanely long time to mount
(1-2 minutes), particulary when valid users = @foo and similar constraints
are used. This is not consistent though, some shares mount just fine
anyway.

One source of this delay I have spotted is that a LDAP search for
(&(objectClass=posixGroup)) is done during mount and this is really slow. 
It is usually triggerd by a setgrent/getgrent/endgrent loop, but the DEBUG 
satements I've placed around the only occurence I found in the samba 
source don't print anything. Does anyone have suggestions why/how samba 
triggers this lengthy search?


Can anyone give suggestions on the best way to locate other potentially 
troublesome areas?


Regards,
Fredrik

-- 
   "It is easy to be blinded to the essential uselessness of computers by
   the sense of accomplishment you get from getting them to work at all."
                                                   - Douglas Adams

Fredrik Öhrn                               Chalmers University of Technology
ohrn at chl.chalmers.se                                                  Sweden





More information about the samba-technical mailing list