From owner-freebsd-questions Mon Jul 15 21: 0:18 2002 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 17AFA37B400 for ; Mon, 15 Jul 2002 21:00:15 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8783C43E6A for ; Mon, 15 Jul 2002 21:00:14 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g6G40DQ5024874; Mon, 15 Jul 2002 23:00:13 -0500 (CDT) (envelope-from dan) Date: Mon, 15 Jul 2002 23:00:13 -0500 From: Dan Nelson To: Steve Mazerski Cc: freebsd-questions@FreeBSD.ORG Subject: Re: "free" command Message-ID: <20020716040013.GD23294@dan.emsphone.com> References: <200207160232.36856.smazerski@yahoo.co.jp> <20020716003339.GC23294@dan.emsphone.com> <200207160242.04959.smazerski@yahoo.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207160242.04959.smazerski@yahoo.co.jp> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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