Re: Small patch to fix top in large NIS environments

From: David Frascone <dave_at_frascone.com>
Date: Wed, 9 Jan 2008 17:24:24 -0500
Oops -- should have checked -- I am not used to working as root, so root
didn't have my normal .cvsrc.  Unified diff attached.

-Dave

On Jan 9, 2008 12:15 PM, David Frascone <dave_at_frascone.com> wrote:

>
> The -u flag to top is supposed to limit uid lookups.  But, it was still
> spinning through the entire password database with while (getpwent()).  At
> Cisco, which has a fairly large NIS database, this takes forever, and top
> never starts.
>
> I filed this bug to address it:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=119490
>
> The attached patch fixes it.  This is my first submission, so let me know
> if this is the proper order, etc, to post the patches ( i.e. file the bug,
> the post a fix)
>
> -Dave
>

Received on Wed Jan 09 2008 - 21:24:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC