From owner-freebsd-questions Thu May 2 19: 4:13 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 6B5F737B417 for ; Thu, 2 May 2002 19:04:08 -0700 (PDT) Received: from fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 2FA436DA64; Thu, 2 May 2002 21:04:00 -0500 (CDT) Received: by fastmail.fm (Postfix, from userid 99) id 6C4C56DA62; Thu, 2 May 2002 21:03:59 -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 02:03:59 +0000 From: "Richard Shea" To: "Roger 'Rocky' Vetterberg" Reply-To: "Richard Shea" X-Epoch: 1020391440 X-Sasl-enc: 1LZmPzrl/yee1naJuFbm2g Cc: "FreeBSD Questions" Subject: Re: getting amount of ram with sysctl Message-Id: <20020503020359.6C4C56DA62@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 On Fri, 03 May 2002 03:17:37 +0200, "Roger 'Rocky' Vetterberg" said: > Richard Shea wrote: > > > 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. > > The commands are just 'sysctl vm.stats.vm.v_page_size' and > 'sysctl vm.stats.vm.v_page_count'. > > Someone just told me about 'sysctl hw.physmem' which gives me a > slightly more accurate value, but Im still missing a few megs. > Thanks very much. Just for the record I get sysctl vm.stats.vm.v_page_size = 4096 sysctl vm.stats.vm.v_page_count = 7345 which comes out as : 30,085,120 and sysctl hw.physmem = 30,584,832 Which is quite a bit of difference. As far as I'm aware the box I'm running these on is a '32 Mb machine' which to my way of thinking should mean that : sysctl hw.physmem = 33,554,432 I'm sure there's stuff I don't know about this that would account for some difference between '32 Mb machine' and they physmem but all the same ~ 9% does seem quite a large discrepancy. Doubtless someone out there can explain this ... ? regards richard shea -- http://fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message