From owner-freebsd-questions Thu May 2 18:17:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rambo.simx.org (rambo.simx.org [194.17.208.54]) by hub.freebsd.org (Postfix) with ESMTP id CFEC837B419 for ; Thu, 2 May 2002 18:17:14 -0700 (PDT) Received: from rambo.simx.org (rocky [192.168.0.2]) by rambo.simx.org (8.12.3/8.12.3) with ESMTP id g431H9a6059243; Fri, 3 May 2002 03:17:09 +0200 (CEST) (envelope-from listsub@rambo.simx.org) Message-ID: <3CD1E531.8050808@rambo.simx.org> Date: Fri, 03 May 2002 03:17:37 +0200 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Richard Shea Cc: FreeBSD Questions Subject: Re: getting amount of ram with sysctl References: <20020503002730.02AF56DA03@fastmail.fm> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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. -- R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message