Subject: bin/32131: negative values of ps -aux if RAM > 2 GB
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <netbsd-users@rmroppert.com>
List: netbsd-bugs
Date: 11/20/2005 19:59:00
>Number: 32131
>Category: bin
>Synopsis: negative values of ps -aux if RAM > 2 GB
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 20 19:59:00 +0000 2005
>Originator: Reinhold Roppert
>Release: 2.1
>Organization:
RM.ROPPERT
>Environment:
NetBSD nbsd3.rmroppert.com 2.1 NetBSD 2.1 (GENERIC) #0: Tue Nov 15 17:56:58 CET 2005 root@nbsd3.rmroppert.com:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Output of ps -aux gives negative values for %MEM if the RAM of the machine is >2GB.
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 0 0.0 -461.4 0 304440 ?? DKs 6:53PM 0:00.00 [swapper]
root 1 0.0 -1.1 60 736 ?? Is 6:53PM 0:00.06 init
the output of sysctl gives:
hw.physmem = -67571712
hw.usermem = -68460544
hw.physmem64 = 4227395584
hw.usermem64 = 4226506752
this occures after fresh installed system from CD with GENERIC Kernel
>How-To-Repeat:
Install NetBSD from CD, use RAM >2GB, do ps -aux and sysctl
Remove RAM till RAM <2GB, do ps -aux and sysctl
>Fix: