From owner-freebsd-questions@FreeBSD.ORG Wed Jan 28 14:05:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7576F16A4CE for ; Wed, 28 Jan 2004 14:05:41 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39BE743D39 for ; Wed, 28 Jan 2004 14:05:22 -0800 (PST) (envelope-from algould@datawok.com) Received: from 23-101.lctv-b4.cablelynx.com ([24.204.23.101] helo=yoda.datawok.com) by heron.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1AlxoD-0005Zq-00; Wed, 28 Jan 2004 14:05:17 -0800 From: "Andrew L. Gould" To: Chris Pressey , Rowdy Date: Wed, 28 Jan 2004 16:05:26 -0600 User-Agent: KMail/1.5.4 References: <401823B2.7050400@fielden.com.au> <401828E8.5090907@fielden.com.au> <20040128135843.7d453814.cpressey@catseye.mine.nu> In-Reply-To: <20040128135843.7d453814.cpressey@catseye.mine.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401281605.26700.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b4f905b33ef22b1993ddab16a0814bf24350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-questions@freebsd.org Subject: Re: showing total/free memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 22:05:41 -0000 On Wednesday 28 January 2004 03:58 pm, Chris Pressey wrote: > On Thu, 29 Jan 2004 08:26:00 +1100 > > Rowdy wrote: > > Matthew Hunt wrote: > > > On Thu, Jan 29, 2004 at 08:03:46AM +1100, Rowdy wrote: > > >>I am setting up MRTG and at the moment I am parsing /var/run/dmesg.boot > > >>and the output from `top -b -d 1` to get total and free memory > > >>respectively, but I hope there is an easier way. > > > > > > Try "vmstat" instead. > > > > Thought of that. According to the man page, vmstat shows, for memory: > > > > avm active virtual pages > > fre size of the free list > > > > Does the size of the free list correspond to actual free memory? I > > wasn't sure whether that was the case or not. > > > > Also, it's a case of parsing the output from top or parsing the output > > from vmstat - I had hoped there would be a simple command that would > > show memory state :) > > > > Dave > > Well, I'm not sure if it works on 5.x, but you could try > > /usr/ports/sysutils/muse > > Should be easier to parse than the other options. > > -Chris oooo...how nice. Thanks. Andrew Gould