| Date | Wed, 26 May 2004 10:27:12 +0200 | From | Roger Luethi <> | Subject | Re: why swap at all? |
| |
On Wed, 26 May 2004 02:38:23 -0400, Anthony DiSante wrote: > Now I buy another 256MB of ram, so I have 512MB of real memory. Why not > just disable my swap completely now? I won't have increased my memory's > size at all, but won't I have increased its performance lots? > > Or, to make it more appealing, say I initially had 512MB ram and now I have > 1GB. Wouldn't I much rather not use swap at all anymore, in this case, on > my desktop?
Swap serves another (often underrated) purpose: Graceful degradation.
If you have a reasonably amount of swap space mounted, you will know you are running out of RAM because your system will become noticeably slower. If you have no swap whatsoever, your first warning will quite possibly be an application OOM killed or losing data due to a failed memory allocation.
Think of the slowness of swap as a _feature_.
Roger - 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/
|