Swap partion

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
Posts: 10
Joined: 08 Dec 2018 06:42

Swap partion

Postby linuxmel » 03 Feb 2019 22:17

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.

Posts: 2290
Joined: 09 Jan 2014 00:17

Re: Swap partion

Postby kurotsugi » 04 Feb 2019 00:41

swap mainly used for standby/hibernate so if you're not using them, you don't need swap.

Posts: 10
Joined: 08 Dec 2018 06:42

Re: Swap partion

Postby linuxmel » 04 Feb 2019 12:55

Thank you. I'm really enjoying Solydxk EE.
And thanks for helping me learn to use this distro.

Posts: 10
Joined: 04 Nov 2017 20:23

Re: Swap partion

Postby ron_widell » 01 Oct 2019 01:33

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,

Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 10 guests