A somewhat long-ish question this time: How can I ensure my PC uses the proper swapspace? I'm lucky enough to have an SSD disk where I have formatted a partition as Linux Swap. Problem is: it is not used.
This is what the system reports:
$ cat /proc/swaps Filename Type Size Used Priority /swapfile file 2097148 0 -2
If I turn on my swap partition,
$ sudo swapon /dev/sdb5
$ cat /proc/swaps Filename Type Size Used Priority /swapfile file 2097148 0 -2 /dev/sdb5 partition 16831484 0 -3
Then turning off the swapfile:
$ sudo swapoff /swapfile $ cat /proc/swaps Filename Type Size Used Priority /dev/sdb5 partition 16831484 0 -2
This all works very well, but how can I make this stick also across a reboot?
I could add these commands to my .profile I guess, but I would like the system to use proper swap space also when someone else (potentially) logs in, i.e. as a system setting. Most likely I'll see a big improvement when the system is taxed... But how? I'd love to see the /swapfile gone, but I'm terrified I might end up with a system that won't boot :)
(As a sidenote - I know I should avoid using /dev/sdb5 and rather use the UUID – well, I'll get there eventually..!)