I've recently upgraded a system to 384 MB of memory,
which the system detects during boot.  Dmesg reports

  real memory  = 402587648 (393152K bytes)
  avail memory = 387903488 (378812K bytes)

with or without 'options MAXMEM "(384*1024)"' and
"sysctl -a | grep hw" reports

  hw.physmem: 399212544
  hw.usermem: 368316416
  hw.pagesize: 4096
  hw.availpages: 97298

However, if I fire up top(1), she reports

  Mem: 5390K Active, 5322K Inact, 7627K Wired, 13K Cache, 48M Buf, 76M Free

Simply addition of the numbers from top(1) comes to about 141 MB.
Looking at top(1) sourcesi shows that she uses the following
syctl variables:
   vm.stats.vm.v_active_count: 5169
   vm.stats.vm.v_inactive_count: 5116
   vm.stats.vm.v_wire_count: 7550
   vm.stats.vm.v_cache_count: 24
   vm.stats.vm.v_free_count: 77901
and the total page_count is
   vm.stats.vm.v_page_count: 95760
which nearly agrees with hw.availpages.

It appears that the recent changes to top(1) to use sysctl
may have gotten the page size, but I haven't determined
where to fix her.

So, is the system using all 384 MB of memory or is there
another kernel config option to set besides MAXMEM.

-- 
Steve
http://troutmask.apl.washington.edu/~kargl/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to