Running out of swap and then system hang

From: Butler, Mathew (ButlerGM@logica.com)
Date: Tue May 14 2002 - 02:37:37 EDT


I'm working on getting Oracle 9i working on an AS4100 running TRU64 5.1A
(Rev. 1885). 2 processors - 1Gb main memory.

I've encountered the following problem a couple of times. I edit some static
DB initialisation parameters and then restart the DB. Then the server hangs
with the console (VT420 terminal) message:

"Unable to allocate requested swap space"

This leaves me unable to start up a session as the console (terminal) has
this message continually scrolling, so I cannot get a prompt. To enable
logon I have to halt the system and then re-boot.

I can investigate the Oracle issues that cause this (requesting too many
resources), but my question is this;

How do I configure the swap so that it behaves more rationally. By this I
mean, I would like to see the process requesting swap (ie: the Oracle
process) to get killed after the O/S has highlighted the swap issue. Or some
other solution that will avoid me running out of swap each time I look into
the Oracle issue.

Here is my swap configuration.

Any help or recommendations are gratefully received,

Mat.

crunchie:?:butlerm > /sbin/swapon -s
Swap partition /dev/disk/dsk0b (default swap):
    Allocated space: 49152 pages (384MB)
    In-use space: 1 pages ( 0%)
    Free space: 49151 pages ( 99%)

Swap partition /dev/disk/dsk0e:
    Allocated space: 337513 pages (2.58GB)
    In-use space: 1 pages ( 0%)
    Free space: 337512 pages ( 99%)

Total swap allocation:
    Allocated space: 386665 pages (2.95GB)
    Reserved space: 55926 pages ( 14%)
    In-use space: 2 pages ( 0%)
    Available space: 330739 pages ( 85%)

Mathew Butler
logica Pty Limited,
Consultant, Energy & Utilities Division, Australia
17-19 Orion Road, Lane Cove West, Sydney, NSW, 2066
Tel: + 61 (2) 9424 4623 Fax: + 61 (2) 9427 9490
E-Mail: butlergm@logica.com
http://www.logica.com

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:41 EDT