Page 1 of 1

Swap partion

Posted: 03 Feb 2019 22:17
by linuxmel
Currently running SolydX EE addition. Do I need to have a swap partition? I have 4megs of memory in my system.
Looks like it was deleted during install.

Re: Swap partion

Posted: 04 Feb 2019 00:41
by kurotsugi
swap mainly used for standby/hibernate so if you're not using them, you don't need swap.

Re: Swap partion

Posted: 04 Feb 2019 12:55
by linuxmel
Thank you. I'm really enjoying Solydxk EE.
And thanks for helping me learn to use this distro.

Re: Swap partion

Posted: 01 Oct 2019 01:33
by ron_widell
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.

Good luck,