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
>>> 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
>> 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
Given that a truckload of libraries touch the nsswitch interface it
would still be most processes IMO.
Simo Sorce * Red Hat, Inc * New York