Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 23:00:13 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Steve Mazerski <smazerski@yahoo.co.jp>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: "free" command
Message-ID:  <20020716040013.GD23294@dan.emsphone.com>
In-Reply-To: <200207160242.04959.smazerski@yahoo.co.jp>
References:  <200207160232.36856.smazerski@yahoo.co.jp> <20020716003339.GC23294@dan.emsphone.com> <200207160242.04959.smazerski@yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 16), Steve Mazerski said:
> On Tuesday 16 July 2002 02:33, Dan Nelson wrote:
> > In the last episode (Jul 16), Steve Mazerski said:
> > > Is there an equivalent to Linux's "free" command in FreeBSD?
> > > Something that does this:
> > >
> > > user@localhost $ free
> > >              total       used       free     shared    buffers     cached
> > > Mem:        261672     178912      82760          0       9616     102020
> > > -/+ buffers/cache:      67276     194396
> > > Swap:       530136          0     530136
> >
> > Lines 4 & 5 of the output from 'top', pretty much.
> 
> Aha, thanks. There isn't a command which dumps the
> info to standard output by any chance? I'm considering
> setting up a webserver with a memory-heavy application
> and I intend writing a script to monitor memory usage.

top | sed -ne 4,5p

You can probably also install the net-snmp port and pull stats that
way.

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020716040013.GD23294>