From owner-freebsd-questions Mon Sep 8 17:06:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA17175 for questions-outgoing; Mon, 8 Sep 1997 17:06:09 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA17165 for ; Mon, 8 Sep 1997 17:06:04 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA15646; Tue, 9 Sep 1997 09:35:54 +0930 (CST) Message-ID: <19970909093554.16057@lemis.com> Date: Tue, 9 Sep 1997 09:35:54 +0930 From: Greg Lehey To: Brandon Gillespie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Swap Partition Info? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Brandon Gillespie on Mon, Sep 08, 1997 at 04:03:13PM -0600 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 08, 1997 at 04:03:13PM -0600, Brandon Gillespie wrote: > Just curious, is there something similar to 'swapon -s' in Digital Unix.. > output looks like: > >> swapon -s > Swap partition /dev/rz0b (default swap): > Allocated space: 16384 pages (128MB) > In-use space: 5937 pages ( 36%) > Free space: 10447 pages ( 63%) > > Swap partition /dev/rz1a: > Allocated space: 36247 pages (283MB) > In-use space: 7473 pages ( 20%) > Free space: 28774 pages ( 79%) > > > Total swap allocation: > Allocated space: 52631 pages (411MB) > Reserved space: 17276 pages ( 32%) > In-use space: 13410 pages ( 25%) > Available space: 35355 pages ( 67%) > >> From the docs: > > -s Displays swap space utilization. For each swap partition, this > flag displays the total amount of allocated swap space, the > amount of swap space that is being used, and the amount of free > swap space. Well, the format's different, but the output is pretty similar to pstat -s: $ pstat -s Device 1024-blocks Used Avail Capacity Type /dev/wd0s1b 51200 46956 4180 92% Interleaved /dev/sd0b 66036 47724 18248 72% Interleaved Total 117108 94680 22428 81% Greg