Date: Tue, 23 Apr 2002 20:41:51 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Erin Fortenberry <efortenb@sdccd.cc.ca.us> Cc: questions@FreeBSD.ORG Subject: Re: Calculating memory in FreeBSD. Message-ID: <20020424014151.GZ44176@dan.emsphone.com> In-Reply-To: <BBDEEDD2EB67D311A0240008C74B93453A9108@ntxmidcity.sdccd.cc.ca.us> References: <BBDEEDD2EB67D311A0240008C74B93453A9108@ntxmidcity.sdccd.cc.ca.us>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 23), Erin Fortenberry said: > > 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. hw.physmem is the closest you can get to total physical memory. > 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? The kernel itself might not be counted here, and possibly other memory used before the vm system starts up. -- Dan Nelson dnelson@allantgroup.com 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?20020424014151.GZ44176>