Re: Swap Usage with Kernel 2.4.14

Ed Tomlinson (tomlins@cam.org)
Sat, 17 Nov 2001 09:59:19 -0500


> I current use 4GB support, 1GB of ram, 2GB of swap.
>
> Having 1GB, I thought I had enough memory for basic operations without
> the disk swapping like mad.

In 2.4.14 linux leave pages in swap when swaping in. This is a win when
the page has not been changed and there is memory pressure. This behavior
is maintained until swap is 50% full. An this point linux starts releasing
swap pages at swapin.

In short linux keeps pages in swap and memory to perform better but starts
releasing swap pages when swap start filling.

Ed Tomlinson

-
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/