No swap? No worries!
Well, tonight I solved an issue that's been bugging me a while. I now have a swap partition which is actually being used - already helping a lot!
The background: I'm hosting my site(s) on Slicehost on a 256mb VPS. I also run screen with weechat, which over time can consume an assload of memory. So every now and again, processes are just dying because weechat is taking over, and for some bizarre reason, I've got no swap.
Well, tonight I reclaimed my swap.
I initially thought I just never had swap to begin with - I'm a pretty early Slicehost adopter (two years now!), so I just thought early in the piece there were hiccups. Turns out an Ubuntu update somehow nuked fstab, and I'd never noticed.
The fix was pretty simple, I just found the new UUID by running `ls /dev/disk/by-uuid/ -al`, and updated fstab. `free -m` was still reporting no swap, though, and I didn't really want to reboot. Turns out `sudo swapon /dev/sda2` activated the swap, and suddenly it was all working perfectly.
So there you go. Swaptastic!
(A couple of hours in and it's already making massive difference. Why didn't I do this a year ago?)
The background: I'm hosting my site(s) on Slicehost on a 256mb VPS. I also run screen with weechat, which over time can consume an assload of memory. So every now and again, processes are just dying because weechat is taking over, and for some bizarre reason, I've got no swap.
Well, tonight I reclaimed my swap.
I initially thought I just never had swap to begin with - I'm a pretty early Slicehost adopter (two years now!), so I just thought early in the piece there were hiccups. Turns out an Ubuntu update somehow nuked fstab, and I'd never noticed.
The fix was pretty simple, I just found the new UUID by running `ls /dev/disk/by-uuid/ -al`, and updated fstab. `free -m` was still reporting no swap, though, and I didn't really want to reboot. Turns out `sudo swapon /dev/sda2` activated the swap, and suddenly it was all working perfectly.
So there you go. Swaptastic!
(A couple of hours in and it's already making massive difference. Why didn't I do this a year ago?)