Subject: Re: Minimum swap size
To: David Laight <>
From: Kamal R Prasad <>
List: tech-kern
Date: 05/19/2003 13:45:19
Kamal R. Prasad
AIX Support & Test, IBM India Software Labs
Golden Enclave, Airport Road, Bangalore-560017, India
Phone : +91-80-5094963,  Internal Ext   : 2963
Jurassic Park III = data center made up of IBM raptors and T-Rex.

David Laight <>
Sent by:
05/19/2003 09:00 AM
        Subject:        Minimum swap size


> I'm looking at the install scripts, currently they default swap
> to 4 times systems RAM.  This is a historical figure - I think based
> on the fact that big systems are likely to have more RAM.

this maybe because your installation scripts are dated. ie FreeBSd, linux 
and solaris probably don't estimate swap space this way (and will rarely 
set it beyond 128 MB).

>- the smaller of 4 * RAM and 128MB

this looks like the prevalent policy in other Unix'es.

>I was also considering making '/' at least 1/10th of the disk.
>That will give some space for /var and /tmp - I've had too much trouble
>with vi running out of space in /var/tmp when editing file of only a few
>10's of MB...

yeah -quite common to see that happen. a seteuid(0) program which gets 
called to clean up /var/tmp when this state is reached will also suffice.