Re: swap and 2.4.20

From: Marcelo Tosatti
Date: Sun Oct 05 2003 - 13:08:24 EST




On Sun, 5 Oct 2003, Maciej Zenczykowski wrote:

> > I remember Linus ranting about swap at one point, but it's been a while.
> >
> > What is the current state of the need for swap on a linux kernel, 2.4.20 in
> > specific. Does it need *any*, given some reasonable amount of RAM? What
> > constitutes a reasonable of RAM?
> >
> > My recent experience suggest none is needed.
>
> I have a different - slightly academic - question. Is it possible to turn
> off swapping? (not turn off swap) Ie. to prevent the kernel from
> unloading paged-in read-only executables? I realise this is a tough
> question with mmap being used for many other things besides executables...

No. Paged-in clean pages might be removed from memory at any time and
reread upon access.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/