Subject: Re: kern/36505: java doesn't work anymore
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200705@veego.de>
List: netbsd-bugs
Date: 06/23/2007 21:55:01
The following reply was made to PR kern/36505; it has been noted by GNATS.

From: Bernd Ernesti <pr200705@veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36505: java doesn't work anymore
Date: Sat, 23 Jun 2007 23:52:40 +0200

 Maybe this could give someone a hint about a possible problem:
 
 /emul/linux/proc/meminfo was in one of the last calls before
  /usr/pkg/bin/sun15-java -Xshare:dump
 failed and thats the output from it:
 
         total:    used:    free:  shared: buffers: cached:
 Mem:  2093187072 2092175360  1011712        0 1788485632 1818034176
 Swap:  4624384        0  4624384
 MemTotal:   2044128 kB
 MemFree:        988 kB
 MemShared:        0 kB
 Buffers:    1746568 kB
 Cached:     1775424 kB
 SwapTotal:  4198820 kB
 SwapFree:   4198820 kB
 
 but swapctl -l shows:
 
 Device      1K-blocks     Used    Avail Capacity  Priority
 /dev/wd0b     4198824        0  4198824     0%    0
 
 The Swap output from meminfo is wrong. Maybe
 
 4*1024*1024*1024
 4294967296
 4198824*1024
 4299595776
 4299595776-4294967296
 4628480
 ^^^^^^^
 
 Ok, the size doesn't match exactly (4628480 vs. 4624384), but I have the
 feeling that there is a 32bit problem with the reported swap size in
 /emul/linux/proc/meminfo.
 
 And
 4624384/1024/1024
 4.4101
 
 This is nowhere near 4GB.
 
 Using /emul/linux/proc/meminfo on an older and different system and with less
 swap (2GB) produce the correct output:
 
 Swap: 2148315136 323182592 1825132544
 
 Bernd