From owner-freebsd-questions Tue Apr 23 14:28: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from intergate.sdccd.cc.ca.us (intergate.sdccd.cc.ca.us [209.129.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 11DE637B41B for ; Tue, 23 Apr 2002 14:27:49 -0700 (PDT) Received: from ntxdistrict.sdccd.cc.ca.us (ntxdistrict.sdccd.cc.ca.us [10.1.100.1]) by intergate.sdccd.cc.ca.us (8.9.1a/8.9.1) with ESMTP id OAA02973 for ; Tue, 23 Apr 2002 14:27:34 -0700 (PDT) Received: by ntxdistrict.sdccd.cc.ca.us with Internet Mail Service (5.5.2654.89) id ; Tue, 23 Apr 2002 14:26:44 -0700 Message-ID: From: Erin Fortenberry To: questions@FreeBSD.ORG Subject: Calculating memory in FreeBSD. Date: Tue, 23 Apr 2002 14:26:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.89) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am trying to calculate total memory in FreeBSD. I know of the five basic memory states, but I always seem to be missing between 3MB and 15MB. The memory info I am getting is from sysctl and; vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count vm.stats.vm.v_page_size vm.stats.vm.v_page_count Right now on a machine with 768MB of RAM I am showing 752.71MB using (vm.stats.vm.v_page_count + vm.stats.vm.v_page_size). Can someone tell me what I am missing? Might this have something to do with vm.stats.vm.v_cache_count? Thanks, Erin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message