Linux memory usage and swap files

Carlos Martin carlosmn at
Wed Jul 7 12:10:44 PDT 2004

On Wed, 7 Jul 2004 22:03:43 +0300, Shane Shields
<silashields at> wrote:
> Hi all,
> There was a recent thread about the need and wisdom of using a swap file and
> some stated that if you have enough memory you don't need one and others
> stated that it will always improve performance.

If you need it, having swap will always improve performance. If you
don't need it, it won't improve it. You should always have a swap
partition, even if it's just a few megs.
Swap is most useful for swapping out stuff you're not using and
leaving room in the system RAM for the filesystem cache and buffers.

Carlos Martín

More information about the lfs-chat mailing list