Howtoforge published a tutorial about changing the Swappiness of your Linux system.
How to change the Swappiness of your Linux system
Swappiness is the kernel parameter that defines how much (and how often) your Linux kernel will copy RAM contents to swap.
How to change the Swappiness of your Linux system