F18 users unable to log in due to cached nsswitch.conf

Simo Sorce simo at redhat.com
Wed Oct 17 20:41:09 UTC 2012


On Wed, 2012-10-17 at 14:31 -0600, Jeff Law wrote:
> On 10/17/2012 02:26 PM, Simo Sorce wrote:
> > On Wed, 2012-10-17 at 14:12 -0600, Jeff Law wrote:
> >> On 10/17/2012 11:07 AM, Simo Sorce wrote:
> >>>
> >>> Personally I do not like the nss_init() calls, it will just make it even
> >>> more difficult to diagnose 'heisenbugs' when some apps start doing it,
> >>> some don't and some other do it at the wrong time.
> >>>
> >>> I would rather have glibc do it automatically with rate limiting.
> >>> Like no more than once every 3 minutes do a stat on one of the getent
> >>> calls and reload if necessary, still this would be thousands of
> >>> unnecessary (vs 0 necessary) stat() calls every day, not the best
> >>> solution.
> >> Rather than polling, why not use inotify?
> >
> > Because you do not want to have one inotify file descriptor open for
> > each and every process in your system, it consumes system resources for
> > no good reason.
> Certainly wouldn't have one for each and every process, they'd be lazily 
> set up.  However, even with lazy setup, we're probably still burning too 
> many fds.

Given that a truckload of libraries touch the nsswitch interface it
would still be most processes IMO.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York



More information about the devel mailing list