Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: hejny@buntspecht.physik.uni-giessen.de (Volker Hejny)
Subject: Re: swapon -s - TOTAL % ????
Date: Fri, 10 Feb 1995 08:42:51 GMT	[thread overview]
Message-ID: <D3s07F.FCI@muster.hrz.uni-giessen.de> (raw)
In-Reply-To: 3he67n$ju4@dekalb.DC.PeachNet.EDU


In article <3he67n$ju4@dekalb.DC.PeachNet.EDU>, douglas@dekalb.DC.PeachNet.EDU (Douglas Jones) writes:
|>Here is the output from swapon -s on my dec 3400 running osf 3.0:
|>
|>%swapon -s
|>Swap partition /dev/rz0b (default swap):
|>    Allocated space:        25088 pages (196MB)
|>    In-use space:            2836 pages ( 11%)
|>    Free space:             22252 pages ( 88%)
|>
|>Swap partition /dev/rz3b:
|>    Allocated space:        17089 pages (133MB)
|>    In-use space:            2663 pages ( 15%)
|>    Free space:             14426 pages ( 84%)
|>
|>
|>Total swap allocation:
|>    Allocated space:        42177 pages (329MB)
|>    Reserved space:          8150 pages ( 19%)
|>    In-use space:            5499 pages ( 13%)
|>    Available space:        34027 pages ( 80%)
|>
|>
|>First, the "total" has been moved to the bottom under 3.0 instead of at
|>the top where it was on 1.3a. Personally, I like the new placement. Now,
|>look at the Free space for the two partitions: 88$ and 84%. Now look at the
|>total Available space: 80%. Should it actually be 86%?

If you look at the "In-use space" you will see, that all is o.k.
(2836+2663=5499). The reserved space is simply larger than the used one.
This can happen on 1.3, too

|>
|>Now back to osf 1.3a, here is the output:
|>
|>%swapon -s
|>Total swap allocation:
|>    Allocated space:        87941 pages (687MB)
|>    Reserved space:         24556 pages ( 27%)
|>    Available space:        63385 pages ( 72%)
|>
|>Swap partition /dev/rz16b:
|>    Allocated space:        32515 pages (254MB)
|>    In-use space:            8416 pages ( 25%)
|>    Free space:             24099 pages ( 74%)
|>
|>Swap partition /dev/rz0b:
|>    Allocated space:        16384 pages (128MB)
|>    In-use space:            8389 pages ( 51%)
|>    Free space:              7995 pages ( 48%)
|>
|>Swap partition /dev/rz8b:
|>    Allocated space:        39042 pages (305MB)
|>    In-use space:            7751 pages ( 19%)
|>    Free space:             31291 pages ( 80%)
|>
|>Note total is now at top: average them out: 74+48+80 = 202; 202/3 = 67.333...
|>

So, what we have learned about percentage and average in school ?
Just count the used pages and you see, that all is ok. As you see, the
in-use space is as big as the reserved space, but this is not neccessary.

|>
|>Cheers,
|>Douglas
|>
--

Volker

==============================================================================
Volker Hejny                | Tel.: 0641 - 702 2783     |  \|/   ____   \|/
II. Physikalisches Institut |                  2760     |   @~  / .. \  ~@
Universitaet Giessen        | Fax : 0641 - 74390        |    \_( \__/ )_/
Heinrich-Buff-Ring 16       |                           |       \____/
D-35392 Giessen             | Internet:     hejny@marvin.physik.uni-giessen.de
==============================================================================


  reply	other threads:[~1995-02-10  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-09 22:50 swapon -s - TOTAL % ???? Douglas Jones
1995-02-10  8:42 ` Volker Hejny [this message]
1995-02-11  2:47 ` Brian Saunders
     [not found] <3he67n$ju4@dekalb.dc.peachnet.edu>
1995-02-10 15:18 ` Stefan Monnier
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox