This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Speeding up nscd


On 12/27/2012 01:07 AM, Petr Baudis wrote:

   * Since all resolving is done in separate children, NSS cannot
reuse resources between the children. For example, IIRC nss_ldap
likes to reuse a single connection to the LDAP server for all the
queries; one of the big reasons to use nscd (at least for some) is to
keep LDAP connection count low for servers handling huge deployments
(thousands+ of clients).

In general, it is not safe to perform complex operations in NSS (or PAM) modules because there's so little known about the surrounding process. That's why nss_ldap was with nss_ldapd, which does the heavy lifting in a separate daemon. Over time, all complex NSS/PAM modules will move to this model.


--
Florian Weimer / Red Hat Product Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]