On Fri, 15 Jun 2001, [iso-8859-1] Stefan Hu�feldt wrote:

> On Fri, Jun 15, 2001 at 07:48:37PM +0200, Alexander Skwar wrote:
> 
> > That's right, and that's how I understood him as well.  I wanted to express,
> > that DrakX should warn in *BIG* red letters, when the user does a setup
> > where SWAP < 2xRAM.
> 
> Perhaps only for RAM < 256MB...

Why that? the effects can be even worse for large amounts of RAM. Imagine someone
installing with 1G of memory and 100M of swap. That would give the system
100MB of RAM and no swap at all after doing swapon. Also everyone with a mainboard
that supports 256MB probably has more than enough drive space during installation.

> 
> |[stefanh@kilroy stefanh]$ cat /proc/meminfo 
> |        total:    used:    free:  shared: buffers:  cached:
> |Mem:  525824000 205770752 320053248   987136 10313728 81051648
> |Swap: 320745472        0 320745472
> 

Maybe rc.sysinit should be changed from blindly doing swapon to 
something like

if [ $((RAMSIZE*2)) -gt $SWAPSIZE ] ; then 
    action "Activating swap partitions: " swapon -a
else
    gprintf "Activating swap partitions:"
    failure "Not enough swap memory found"
fi

Then at least the users who don't have enough swap memory or upgraded 
their RAM after install will be able to use all of their RAM!

Arnd <><


Reply via email to