From nobody@FreeBSD.org  Wed Jan  9 13:27:40 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D1E3316A418
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Jan 2008 13:27:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BE12313C4D5
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Jan 2008 13:27:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m09DQakN026752
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 9 Jan 2008 13:26:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m09DQaeI026751;
	Wed, 9 Jan 2008 13:26:36 GMT
	(envelope-from nobody)
Message-Id: <200801091326.m09DQaeI026751@www.freebsd.org>
Date: Wed, 9 Jan 2008 13:26:36 GMT
From: David Frascone <dave@frascone.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: top hangs for long periods with NIS -- even using -u
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119490
>Category:       bin
>Synopsis:       top(1) hangs for long periods with NIS -- even using -u
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 09 13:30:02 UTC 2008
>Closed-Date:    Tue Feb 15 01:00:19 UTC 2011
>Last-Modified:  Tue Feb 15 01:00:19 UTC 2011
>Originator:     David Frascone
>Release:        7.0rc1
>Organization:
Cisco Systems
>Environment:
FreeBSD hydra.cisco.com 7.0-RC1 FreeBSD 7.0-RC1 #0
>Description:
Top does a getpwent loop, which takes forever on NIS boxes with huge password databases.

I have a fix, but I'm filing this bug, so that my diff can be tested / checked in.  The -u option is supposed to avoid problems like this, but it was not being checked everywhere.
>How-To-Repeat:
top or top -u on a box with a big YP password file
>Fix:
Will submit diff when cvsup is finished building

>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/119490: commit references a PR
Date: Wed,  9 Jan 2008 18:06:31 +0000 (UTC)

 obrien      2008-01-09 18:06:24 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.bin/top          machine.c 
     contrib/top          top.c 
   Log:
   Improve -u (limit uid lookups) behavior.
   
   Submitted by:   David Frascone <dave@frascone.com>
   PR:             119490
   
   Revision  Changes    Path
   1.24      +1 -1      src/contrib/top/top.c
   1.84      +8 -2      src/usr.bin/top/machine.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: gavin 
State-Changed-When: Thu Feb 28 12:04:27 UTC 2008 
State-Changed-Why:  
Fixed in -HEAD (after 7.x was branched), needs MFCing to RELENG_6/7 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119490 

From: Gavin Atkinson <gavin@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/119490: top(1) hangs for long periods with NIS -- even
	using -u
Date: Fri, 06 Jun 2008 18:40:55 +0100

 This is fixed in HEAD and RELENG_7, but not yet merged to RELENG_6.
State-Changed-From-To: patched->closed 
State-Changed-By: arundel 
State-Changed-When: Tue Feb 15 00:59:39 UTC 2011 
State-Changed-Why:  
Fixed in all branches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119490 
>Unformatted:
