Subject: kern/6170: rusage ru_nswap (nearly) unused
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@primenet.com.au>
List: netbsd-bugs
Date: 09/17/1998 12:59:55
>Number: 6170
>Category: kern
>Synopsis: rusage ru_nswap (nearly) unused
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 17 06:05:01 1998
>Last-Modified:
>Originator: Geoff C. Wing
>Organization:
Geoff Wing <gcw@pobox.com> Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/
>Release: 19980915
>Environment:
System: NetBSD coral.primenet.com.au 1.3H NetBSD 1.3H (CORAL) #3: Wed Sep 2 00:39:19 EST 1998 mason@coral.primenet.com.au:/staff/netbsd/src/sys/arch/i386/compile/CORAL i386
>Description:
rusage ru_nswap, which is output with "ps -o nswap" is not actually
updated anywhere in the source code except in sparc32 compat stuff.
It would be nice to have in NetBSD main source, too.
>How-To-Repeat:
% ps -ax -o "stat nswap" | fgrep W
STAT NSWAP
IW 0
IWs 0
IW 0
Hey, look at that - processes are swapped out (state flag W) but
they've been swapped 0 times.
zsh% cd /usr/src/sys
zsh% fgrep -l ru_nswap **/*.c # or some find thingy
compat/sparc32/sparc32_netbsd.c
>Fix:
? mrg?
>Audit-Trail:
>Unformatted: