[PATCH] Re: Plugable passdb (SAM) modules

Andrew Bartlett abartlet at pcug.org.au
Thu Jan 24 00:24:03 GMT 2002


"Stefan (metze) Metzmacher" wrote:
> 
> I don't exactly now if I'm right, so correct me if not!
> 
> If the four builtin passdb modules are linked staticly. They are all loaded
> to memory if smbd is started. When smbd forks for each client, the code for
> the 4 modules are loaded in memory for each client.
> 
> 500 clients = 500 * 4 = 2000 passdb modules are in memory and only 500 are
> realy used. if shared modules are in use the module is loaded only 1 time
> in memory!!!

Incorrect.  The whole of smbd's executable image is shared betwen all
processes running smbd.  Furthermore, all data structures that exist at
fork() time (on linux in particular) only once until they are modified.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba-technical mailing list