Date: Wed, 6 Aug 2014 14:53:14 +0300 From: Stefan Parvu <sparvu@systemdatarecorder.org> To: freebsd-hackers@freebsd.org Subject: memory utilization questions Message-ID: <20140806145314.643dcc34a360f8284083930e@systemdatarecorder.org>
next in thread | raw e-mail | index | archive | help
Im planning to calculate real used, free memory. Can anyone confirm if these are correct: 1. real used memory usedmem = totalmem - freemem, totalmem = vm.stats.vm.v_page_count x page_size freemem = vm.stats.vm.v_free_count x page_size 2. real free memory realfree = inactive + cache + free ? inactive = vm.stats.vm.v_inactive_count x page_size cache = vm.stats.vm.v_cache_count x page_size free = vm.stats.vm.v_free_count x page_size Thanks, -- Stefan Parvu <sparvu@systemdatarecorder.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140806145314.643dcc34a360f8284083930e>