From owner-freebsd-questions Tue Sep 12 13:39:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id E269837B43E for ; Tue, 12 Sep 2000 13:39:27 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id PAA26672; Tue, 12 Sep 2000 15:39:21 -0500 (CDT) (envelope-from dan) Date: Tue, 12 Sep 2000 15:39:21 -0500 From: Dan Nelson To: Evren Yurtesen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: simple memory usage question Message-ID: <20000912153921.A26116@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.8i In-Reply-To: ; from "Evren Yurtesen" on Tue Sep 12 23:01:31 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 12), Evren Yurtesen said: > Is there any command which gives out the total memory usage in a form > that I can use it inside a script? for example as 'uptime' gives the > system uptime in a line at screen. Define "usage". Under unixes, there isn't much of a difference between disk cache, executable program images, and application data. On most systems, all of the memory is "in use" somehow or another. If you're looking for something to graph, a better indicator of memory load is pageins/pageouts per second (the "pi" and "po" columns of "vmstat 1" output) -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message