Date: Tue, 07 Aug 2001 18:37:56 +0300 From: Maxim Sobolev <sobomax@FreeBSD.org> To: Bernd Rinn <Bernd.Rinn@uni-konstanz.de> Cc: freebsd-ports@FreeBSD.org Subject: Re: current free mem under FreeBSD Message-ID: <3B700B53.E8664B77@FreeBSD.org> References: <20010807114037.A25532@planck.physik.uni-konstanz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Bernd Rinn wrote: > Hi all, > > I am currently porting a Queuing System (fair scheduling and load > balancing) to FreeBSD which we have written for Linux. For this port I > need to know how to get a FreeBSD machine's current free memory, i.e. > the maximum amount of memory a program can currently use without > driving the machine to (heavy) paging activity. (This is provided in > /proc/meminfo under Linux.) Currently I am using the formula (using > sysctl variables): > > (vm.stats.vm.v_page_count-vm.stats.vm.v_active_count)*(vm.stats.vm.v_page_size/1024) > > but I suspect that it might not be correct... > > Regards, > > Bernd > > P.S.: Please CC to Bernd.Rinn@uni-konstanz.de since I am not > subscribed to the list. Try to ask Matt Dillon (dillon@FreeBSD.org) - he is the main author of the current FreeBSD VM subsystem, so he probably knows for sure. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B700B53.E8664B77>