From owner-freebsd-bugs Wed Jan 23 1:20: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1789D37B402 for ; Wed, 23 Jan 2002 01:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0N9K1595975; Wed, 23 Jan 2002 01:20:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 374CC37B416 for ; Wed, 23 Jan 2002 01:12:49 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0N9Cn694978; Wed, 23 Jan 2002 01:12:49 -0800 (PST) (envelope-from nobody) Message-Id: <200201230912.g0N9Cn694978@freefall.freebsd.org> Date: Wed, 23 Jan 2002 01:12:49 -0800 (PST) From: "Samuel J. Greear" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/34199: [PATCH] top(1) RES/rss display incorrect Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34199 >Category: bin >Synopsis: [PATCH] top(1) RES/rss display incorrect >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 23 01:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Samuel J. Greear >Release: 5.0-CURRENT >Organization: >Environment: FreeBSD larrikin.evilcode.net 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Jan 22 22:48:56 GMT 2002 root@larrikin.evilcode.net:/usr/src/sys/i386/compile/DK i386 >Description: Due to KSE changes in kern_proc.c (rev 1.101) the member of kinfo_proc, ki_rssize no longer needs to be munged after retrieval to be accurate. See /bin/ps/print.c, rev 1.50. "UPAGES as a constant is gone in KSE. We are going to have to trust and/or fix ki_rssize". Whitespace in attached patch is hosed, see: http://evilcode.net/patches/top-rss.diff >How-To-Repeat: >Fix: --- machine.c.orig Wed Jan 23 01:59:21 2002 +++ machine.c Wed Jan 23 01:59:57 2002 @@ -574,7 +574,7 @@ (PRIO_MIN - 1 - (PRI_MAX_REALTIME - pp->ki_pri.pri_level)) : (PRIO_MAX + 1 + pp->ki_pri.pri_level - PRI_MIN_IDLE))), format_k2(PROCSIZE(pp)), - format_k2(pagetok(pp->ki_rssize)), + format_k2(pp->ki_rssize), status, smpmode ? pp->ki_lastcpu : 0, format_time(cputime), >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message