With Linux it’s possible de compress the memory to limit disk swapping. A compressed swap can be created in memory. It was implemented in linuxcompressed project available on sourceforge, but this project died in 2003. It has respawned some month ago as compcache, on Google Code. The 0.4 version perfectly build and load in my Debian 2.6.26 kernel.