Date: Wed, 28 Jan 2004 16:05:26 -0600 From: "Andrew L. Gould" <algould@datawok.com> To: Chris Pressey <cpressey@catseye.mine.nu>, Rowdy <david@fielden.com.au> Cc: freebsd-questions@freebsd.org Subject: Re: showing total/free memory Message-ID: <200401281605.26700.algould@datawok.com> In-Reply-To: <20040128135843.7d453814.cpressey@catseye.mine.nu> References: <401823B2.7050400@fielden.com.au> <401828E8.5090907@fielden.com.au> <20040128135843.7d453814.cpressey@catseye.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 28 January 2004 03:58 pm, Chris Pressey wrote: > On Thu, 29 Jan 2004 08:26:00 +1100 > > Rowdy <david@fielden.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401281605.26700.algould>