[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-help
Subject:    Update: negative values using ps -aux
From:       "Reinhold M. Roppert" <netbsd-users () rmroppert ! de>
Date:       2005-11-15 12:17:18
Message-ID: 4379DFDE.26827.6434FB1 () localhost
[Download RAW message or body]

Am 14 Nov 2005 um 11:44 hat Reinhold M. Roppert geschrieben:

> i get negative Values using ps -aux
> 
> nbsd3:> ps -aux
> USER    PID %CPU  %MEM    VSZ    RSS TT STAT STARTED    TIME COMMAND
> root      0  0.0 -204.5      0 134912 ?? DKs  10:13PM 0:00.00 [swapper]
> root      1  0.0  -1.1     68    736 ?? Is   10:13PM 0:00.14 init

On Mon, Nov 14, 2005 at 11:56:54AM -0500, Perry E. Metzger wrote:

>I remember that being a bug that was fixed -- in -current I don't get
> negatives for in-kernel procs.

Ok. I discovered, the negative values appear if the ram is more than 2 GB.
If i reduce the ram, the values seems to be correct.

There were bugs (23717, 24092) which are marked as closed since Dec. 2003 and 
NETBSD 1.6.4_RC4 ! This seems to the be same Problem i have with Version 2.1.

sysctl gives

with 2 GB RAM:
hw.physmem=2147020800
hw.physmem64=2147020800

with 4 GB RAM:
hw.physmem= - 67571712
hw.physmem64= 4227395584

which is the same wrong value discribed in Probelm Report 23717 and 24092
I use port i386, Netbsd 2.1 fresh installed from CD, Kernel GENERIC,  

Now the questions are:

Where are these values and the functions used and can this cause an instability of the 
system?
I don't know where hw.physmem is the used all about.
What functions must be patched?  
I´m not an developer so i asked obove questions.

Thank you for answers and 
best regards.

R. M. Roppert


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic