I'm running Kubuntu 17.10, upgraded from 17.04 in-place.
I have a 2GB swap file on my SSD that was created by the installer when I first installed 17.04. Here's the contents of /proc/swaps
(fresh after a reboot from running out of memory):
Filename Type Size Used Priority
/swapfile file 2097148 0 -1
How can I expand this swapfile to 4GB? I've found plenty of answers about resizing swap partitions and adding new swap files, but nothing about resizing existing ones.
/swapfile
– recreate/swapfile
of desired size – re-enable swap. – PerlDuck Feb 24 '18 at 20:07