From: Lars Wirzenius (wirzeniu@klaava.Helsinki.FI)
Date: 02/14/93


From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
Subject: Re: bug: In kernel or in screen?
Date: Sun, 14 Feb 1993 09:53:12 GMT

jbii@HDFS1.acd.com ( John O. Bell II ) writes:
>Try increasing your swap space to 32 Mb. As a rule, it helps to have twice
>as much swap space as you have RAM on board.

No it doesn't. Increasing swap space doesn't help a squat if you
aren't already using all or most of what you already have.

The rule is

        RAM + swap space >= total memory you need at any one time

And conversely,

        total memory you can use at any one time = RAM + swap space

If you don't ever need more than 16 MB, and you have 16 MB of RAM, you
don't need any swap space. It is just a waste of disk space to
allocate 32 MB of swap (which, btw, should be allocated as two 16 MB
swap areas, since Linux only uses at most 16 MB of one swap area),
when you don't need all of it. If you only need, say, 4 MB of swap
space, and allocate 32 MB, you have robbed yourself of 28 MB of disk
space that you could do productive work with. Since you don't need it
for swapping either, it just sits there unused.

I don't know about you folks, but I'd hate to be robbed of 28 MB of
disk...