Re: Swap vs No Swap.

war (war@starband.net)
Thu, 22 Nov 2001 11:36:39 -0500


The bottom line here is:

There is no need for swap if you have enough ram.
Using swap with more than enough ram does absolutley nothing for the system,
except by degrading the performance of it.

James A Sutherland wrote:

> On Thursday 22 November 2001 4:01 pm, war wrote:
> > Once again, I have enough ram where I am not going to run out for the
> > things I do.
> > I never need swap.
> >
> > When the system swaps, it slows down the system responsiveness big time.
>
> "when it swaps" is meaningless: Linux ALWAYS swaps when there is swapspace.
> Do you mean when it *thrashes*? Or does your system have problems during I/O
> such as not using DMA for disk access?
>
> James.

On Thursday 22 November 2001 4:00 pm, war wrote:
> Incorrect, my point is I have enough ram where I am not going to run out
> for the things I do.

There's more to it than "not run out". You have some fixed amount of RAM; if
the VM is working properly, adding swap will IMPROVE performance, because
that fixed amount of RAM is used more efficiently.

Obviously, there are cases where removing swap breaks the system entirely,
but even in other cases, adding swap should *never* degrade performance. (In
theory, anyway; in practice, it still needs tuning...)

> Using swap simply slows the system down!

In which case, the VM isn't working properly; it SHOULD page out infrequently
used data to make more room for caching frequently used files.

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

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