Balance swap space.

From: <cedric.van.bellingen_at_belgacom.be>
Date: Wed, 02 Jun 1999 15:58:08 +0200

Hi,

Having read the archives, I found a very relevant advice from Dr. Tom Blinn
saying "I would comment that the [round-robin] algorithm works best when all
the swap partitions are of about the same size".

As I have the following situation, I wonder if my "not balanced" swap space
does come from that:
swapvol: 131MB (rz0b and rz2b)
swapvol2: 2006MB (rz1 and rz3)
swapvol3: 2006MB (rz4 and rz5)
As you can see, all swap volumes are mirrored via LSM.

Here is what my swapspace use looks like, which is quite not well balanced:

ecar2a:/etc/fdmns# swapon -s

Swap partition /dev/vol/rootdg/swapvol (default swap):
    Allocated space: 16863 pages (131MB)
    In-use space: 16176 pages ( 95%)
    Free space: 687 pages ( 4%)

Swap partition /dev/vol/rootdg/swapvol2:
    Allocated space: 256872 pages (2006MB)
    In-use space: 30940 pages ( 12%)
    Free space: 225932 pages ( 87%)

Swap partition /dev/vol/rootdg/swapvol3:
    Allocated space: 256872 pages (2006MB)
    In-use space: 23377 pages ( 9%)
    Free space: 233495 pages ( 90%)


Total swap allocation:
    Allocated space: 530607 pages (4145MB)
    Reserved space: 229546 pages ( 43%)
    In-use space: 70493 pages ( 13%)
    Available space: 301061 pages ( 56%)

As we use Polycenter Console Manager, we recurrently get a message saying
the machine is running out of swap space (that is not true, except if you
only consider primary swap).

Then I think about doing a change in the configuration. I'd remove the
"swapvol" volume from /etc/fstab and change the links for /sbin/swapdefault
and /sbin/swapdefault.lsm making them pointing to swapvol2 instead of
swapvol. This way, I'd have 2*2 Gb Swap space instead of 1*130 Mb and 2*2
Gb.

We run DU4.0D PK2.

Have any of you been facing similar problem and give some comment and/or
procedure? I'll summarize.

TIA.
Cedric.
____________________
Cedric Van Bellingen
Belgacom - ISD
UNIX System Group - DEC/Compaq
mailto:cedric.van.bellingen_at_belgacom.be
tel: 02/2445996 fax: 02/2446089
Received on Wed Jun 02 1999 - 14:00:27 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT