caker wrote:
I want to encourage everyone with a Linode to have a swap file of at least 256M (you can resize your disk images to make room). I've recently changed the suggested swap file size in the Distro wizard to 256M. I believe a lot of the problems we've encountered with disk contention is caused by Linodes with a very small swap size (64M) constantly thrashing their swap file.
Stay tuned for more performance posts!
-Chris
If you don't have disk space available for the raw disk partition by resizing the partition, you can always create a swap file over the filesystem:
- dd if=/dev/zero of=/swap1 count=256k
(count is in the block count, not kBytes, ie 256k creates swap file of ~128MBytes)
- mkswap /swap1
- /sbin/swapon /swap1 (add this to somewhere in your rc boot files)
This probably takes a slight performance hit vs. raw partition but I haven't noticed problems with it in my linode.
Risto