From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 19:03:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E01A106566B for ; Wed, 17 Mar 2010 19:03:06 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 381888FC12 for ; Wed, 17 Mar 2010 19:03:05 +0000 (UTC) Received: (qmail 1415 invoked from network); 17 Mar 2010 19:03:05 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Mar 2010 19:03:05 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id B801A50889; Wed, 17 Mar 2010 15:03:03 -0400 (EDT) From: Lowell Gilbert To: Mario Lobo References: <201003171546.00190.lobo@bsd.com.br> Date: Wed, 17 Mar 2010 15:03:03 -0400 In-Reply-To: <201003171546.00190.lobo@bsd.com.br> (Mario Lobo's message of "Wed, 17 Mar 2010 15:46:00 +0000") Message-ID: <44d3z2epp4.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Measuring Free memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 19:03:06 -0000 Mario Lobo writes: > I am trying to get the most precise reading I can of all free memory (8- > STABLE). First, you'll need a precise definition of what you mean by "free memory". > I am using > /usr/bin/vmstat | grep -a 2 | awk '{print $5}' > > But I'm not sure if this reflects ALL free memory. > > Would anyone have a more precise place to read free memory from? Add the "-H" flag to get that value more precise. I suspect, however, that precision isn't really the right term for what you're after. Have you seen: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM and http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FREE-MEMORY-AMOUNT by any chance? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/