Subject: kern/6891: garbage memory usage fields in proc structures of kernel threads
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 01/27/1999 22:33:45
>Number:         6891
>Category:       kern
>Synopsis:       garbage memory usage fields in proc structures of kernel threads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 27 13:35:00 1999
>Last-Modified:
>Originator:     Soren S. Jorvang
>Organization:
Soren
>Release:        NetBSD-current 19980127
>Environment:
System: NetBSD meow 1.3I i386

>Description:
Memory usage fields in the proc structures of kernel threads appear uninitialized.
I vaguely seem to recall that this was due to some unfinished work.
For now, I suggest just zeroing those fields.

>How-To-Repeat:
$ ps axu 
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
soren     1396  0.0  0.4   364  224 p1  R+   10:27PM    0:00.00 ps -axu 
root         1  0.0  0.3   332  212 ??  Ss    7:55PM    0:00.03 /sbin/init -s 
root         2  0.0 -34.3     0 -22360 ??  DL    7:55PM    0:00.11 (pagedaemon)
root         3  0.0 -34.3     0 -22360 ??  DL    7:55PM    0:00.04 (reaper)
[...]
root         0  0.0 -34.3     0 -22372 ??  DLs   7:55PM    0:00.00 (swapper)

>Fix:
Don't know.
>Audit-Trail:
>Unformatted: