From owner-freebsd-questions Thu May 2 17:27:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fastmail.fm (fastmail.fm [209.61.183.86]) by hub.freebsd.org (Postfix) with ESMTP id 3A7CE37B41A for ; Thu, 2 May 2002 17:27:39 -0700 (PDT) Received: from fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 71E726DA16; Thu, 2 May 2002 19:27:31 -0500 (CDT) Received: by fastmail.fm (Postfix, from userid 99) id 02AF56DA03; Thu, 2 May 2002 19:27:30 -0500 (CDT) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 2.117 (F2.6; T0.14; A1.42; B2.12; Q2.03) Date: Fri, 3 May 2002 00:27:30 +0000 From: "Richard Shea" To: "FreeBSD Questions" Reply-To: "Richard Shea" X-Epoch: 1020385651 X-Sasl-enc: fdRaKqyGGEmjIGYAqTdGew Cc: listsub@rambo.simx.org Subject: getting amount of ram with sysctl Message-Id: <20020503002730.02AF56DA03@fastmail.fm> 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 > Im trying to get the total amount of ram in a machine using > sysctl variables. > > I figured vm.stats.vm.v_page_size * vm.stats.vm.v_page_count > should give me total ram, but it always end up a few megs short. Hi - Sorry I don't have an answer to your question but I would like to do this myself and I don't know how (I don't know how to do it at all, forget about accuracy !). I've looked at 'man sysctl' and I can't see the variables you have mentioned - the nearest i've got is 'vm.loadavg'. Could you post the actual command you're using so that I could try it ? Sorry about not answering your question, I'm sure someone will ! regards richard shea. -- http://fastmail.fm - Get back to work To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message