[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Simple kernel question



-----BEGIN PGP SIGNED MESSAGE-----

John Aldrich wrote:

>> According to Linus, 2.4 kernels should have a 2:1 ratio of swap:RAM.
>> If removing the swap file will bring you below that, I'd leave it.
>>
> <personal belief> I'd say
>256 megs of swap *should* be sufficient for most things, depending on how
>memory-intensive you're going to get. However, on a laptop, I doubt you're
>serving up 2,000 web pages a second or anything similarly memory-intensive!
>;-) </personal belief>

error: <personal belief>: command not found

Ted T'so spoke at length about this at Usenix.  2.4 kernels use swap
in a way that may not be intuitive (and which surprised me).  Roughly
an amount of swap space equivalent to the amount of RAM is used for
what is essentially a mirror of your physical RAM.  Much of your RAM
is swapped out during idle cycles, even if it doesn't need to be.
This makes it a nearly instantaneous operation to purge RAM if needed
for new processes, since the information is already in swap, thus
greatly increasing system response time under some circumstances.
Ergo, if you have 256MB of RAM and 256MB of swap, you're not going to
be able to use swap space efficiently, since there's not room to
shuffle.

So 2:1 it is, personal beliefs notwithstanding.  =)

- -d

- -- 
David Talkington
http://www.spotnet.org

PGP key: http://www.prairienet.org/~dtalk/dt000823.asc

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQEVAwUBO2gs9r1ZYOtSwT+tAQEtngf/crc02wHpFt4bMeAHRaK21lXKI1Vf6ti1
f1FCpY3IV5rROs3Yd41P2NpSdQZlS+p5vjY+E/ZRVkJR6mGnXvwLiSlNYAMjZDfs
ixQxWvMZ5YeBHyM5ShxD6Cjz04NgcvetVxeFp4JmzBjk/7p4Ybf7UH1Vm2MWjShs
2+Hxezi4haCtDSFgqBtC4gUcSAtxXl9iiuU5Lqd9o+U5hpVRaV11GwhbgpQTp7Hk
IBzopn+x8bsJ64BUQYRzf0+/tXDgwvA08+tmDHjyTLDbXyjRxfuqpY2A4aADpMNE
RfefiGgGRkiVZj2Hu5bDzx7RvsWoVVcYEIvwEfynsITcAd1xZ1XPPg==
=NodC
-----END PGP SIGNATURE-----






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]