Interesting results for getservbyname() performance (and possible changes for /etc/services)

Ulrich Drepper drepper at
Thu Jan 12 15:55:47 UTC 2006

Ralf Ertzinger wrote:
> AFAIK nscd can cache everything going through nsswitch.conf, including
> services.

No, you're wrong.  nscd  only caches passwd, group, hosts data.  Nothing

And I'm reluctant to add support for rarely used other services because
the cost doesn't really justify the gains.  For this problem, as I told
Phil already internally, I think it's perfectly fine to use nss_db.
It's really static data so updating the database when a) the
/etc/services file changes or b) the nss_db implementation changes, is
no big issue.

➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the fedora-devel-list mailing list