swap is using disk for memory instead of RAM free -m
sudo swapon -a # turn on all swap sudo swapoff -a # turn off all swap
cat /proc/sys/vm/swappiness # ubuntu default is 60, which means programs will use swap frequently
sudo sysctl vm.swappiness=10 #
sudo vi /etc/sysctl.conf vm.swappiness = 10 # rarely use swap sudo reboot
FYI kswapd is the daemon that manages swap, if top or other commands show it with high cpu usage watch out...
FYI http://community.opscode.com/cookbooks/sysctl
linux partitions (4GB hd)
/boot boot 100 MB
500MB (equal to swap since it's virtual) swap
I must measure how ubuntu server w/ LAMP uses the different areas and then repartition accordingly
/ root
/usr
/home //ftp users?
/var can fill up on mail servers (don't want to kill the os) /tmp can be "dumped" to by hackers (see above)
just w/ openssh