Yup, there seems to be some sort of cultural conspiracy against swap at the moment. I don't know if this is just the machismo of running naked with massive amounts of RAM, or whether people have just been blind-sided by the mass delusion that swap slows down your system. It isn't swap that is slow, it is not having enough memory that makes things slow. And not having sw
I have a Dell XPS Ultrabook with a Hybrid Drive/32G of SSD. I have installed my root partition and swap on the SSD and /home on my HDD. I have 8G of Ram and had allocated only 4G of swap on the SSD. Now I want to hibernate my laptop and need more swap.
For me swap is useful: I have 3gb ram and 2gb swap (OCZ SSD),I can still use the system with a bit of lag with the swap almost full (fiefox opera with a lot of tabs,amule,thunderbird,amsn etc... with many days of uptime). HD swap would be deadly slow instead.
I use the following script (from this blog http://northernmost.org/blog/find-out-what-is-using-your-swap) to know for each process how much swap it is using
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do
PID=`echo $DIR | cut -d / -f 3`
PROGNAME=`ps -p $PID -o comm
A team member has created a swapfile on one of our machines which needed more swap. And he created it on a filesystem on SSD. While our servers are not swapping a lot and probably safe to keep the swap file on the SSD with its finite write-cycles, I am curious to know what happens if SWAP partition fails on a server that is using the swap (say the SWAP drive died).
When I found my system being too slow, I created a linux-swap with the help of gparted. It has helped me highly, providing a reliable processing speed without any blackening of my screen. But whenever I turn off my system the partition turns to swap off mode. So whenever I turn on my system again, I need to swap on my linux-swap. I am tired of waking it up every time when I start off my system.