Swap usage also varies depending upon how heavily loaded the system is.
If you try to simultaneously edit a bunch of 48 Mpixel images, some 8K video and manipulate a large in-memory database, you'll probably find that some of your application will stall or (very unlikely) that you system will crash if you don't have a reasonably sized swap area.
Back in the SysVr2/3/4 days, the rule of thumb was that the swap area should be 150% of installed memory. I don't know if that's still true (I doubt it), but you'll probably find that your system runs much smoother with an enabled swap area.
Note that it doesn't have to be a separate partition. It can just be a file.
Code: Select all
#dd if=/dev/zero of=/swapfile bs=1MiB count=$((6*1024)) && mkswap /swapfile && swapon /swapfile
will create and enable a 6GB swap area in /swapfile.
That way you won't have to modify your drive partitioning.