This is the mail archive of the libc-help@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: Fwd: SELinux support in Libc


On 27 May 2010, Petr Baudis told this:

> On Thu, May 27, 2010 at 12:40:24PM +0500, Shaz wrote:
>> http://cblfs.cross-lfs.org/index.php/NSS_Caching mentions some
>> concepts but what can be a possible usecase to understand what this
>> object manager really achieves.
>
> The wiki page you linked seems to be pretty clear on everything (up to
> minor omissions) - the main usecase is to cache results returned by
> nss_nis, nss_ldap and such.

It's also damn useful if you've used something like the iana-etc project
to soup up /etc/services to include the full list of IANA-registered
services. A full services file is about 20000 lines long, and without
nscd every failing getservby*() call will do a full linear search of
that monster, which is *slow*. With nscd in place, this is reduced to a
binary search of a shared memory ragion: nearly instantaneous.

(of course only a madman would actually *want* a 20000 line long
/etc/services file.)


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