From owner-freebsd-current Mon Mar 5 11:52:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from mgate04.so-net.ne.jp (mgate04.so-net.ne.jp [210.139.254.151]) by hub.freebsd.org (Postfix) with ESMTP id 244CB37B718 for ; Mon, 5 Mar 2001 11:52:50 -0800 (PST) (envelope-from ipfw@ya3.so-net.ne.jp) Received: from mail.ya3.so-net.ne.jp (mspool11.so-net.ne.jp [210.139.248.11]) by mgate04.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W01022711) with ESMTP id EAA05645; Tue, 6 Mar 2001 04:52:48 +0900 (JST) Received: from localhost (pd5ceab.kngwnt01.ap.so-net.ne.jp [202.213.206.171]) by mail.ya3.so-net.ne.jp (8.9.3/3.7W01022316) with ESMTP id EAA06399; Tue, 6 Mar 2001 04:52:47 +0900 (JST) To: kargl@troutmask.apl.washington.edu Cc: freebsd-current@freebsd.org Subject: Re: top, MAXMEM, sysctl, and missing memory? From: Yoshihiro Koya In-Reply-To: <200103051943.f25JhhK01196@troutmask.apl.washington.edu> References: <200103051943.f25JhhK01196@troutmask.apl.washington.edu> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010306045849A.ipfw@ya3.so-net.ne.jp> Date: Tue, 06 Mar 2001 04:58:49 +0900 X-Dispatcher: imput version 990905(IM130) Lines: 37 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, From: "Steven G. Kargl" Subject: top, MAXMEM, sysctl, and missing memory? Date: Mon, 5 Mar 2001 11:43:43 -0800 (PST) Message-ID: <200103051943.f25JhhK01196@troutmask.apl.washington.edu> > 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. I also have same problem. The top command does not translate the value of page size into KB value maybe. Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=25545 But, I am not sure that it is a complete solution. koya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message