Date: Fri, 3 May 2002 02:03:59 +0000 From: "Richard Shea" <richardshea@fastmail.fm> To: "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org> Cc: "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: Re: getting amount of ram with sysctl Message-ID: <20020503020359.6C4C56DA62@fastmail.fm>
next in thread | raw e-mail | index | archive | help
On Fri, 03 May 2002 03:17:37 +0200, "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020503020359.6C4C56DA62>