Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 1997 09:35:54 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brandon Gillespie <brandon@sunrem.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Swap Partition Info?
Message-ID:  <19970909093554.16057@lemis.com>
In-Reply-To: <Pine.BSF.3.96.970908160213.23448A-100000@sunrem.com>; from Brandon Gillespie on Mon, Sep 08, 1997 at 04:03:13PM -0600
References:  <Pine.BSF.3.96.970908160213.23448A-100000@sunrem.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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