Forum Home
Press F1
 
Thread ID: 145847 2018-02-09 23:12:00 Linux (Mint) swap files with Solid State drives mzee (3324) Press F1
Post ID Timestamp Content User
1446126 2018-02-09 23:12:00 As I understand it, continual swapping of data on a solid state drive shortens its life. If this is the case, why does Linux (Ubuntu, Mint) have a swap partition? I have 4GB of RAM which should be adequate for Mint. The same computer runs Windows 10pro with the swap file disabled. A swap partition is a waste of space.

What will happen if I delete the swap partition, an extend the 'NTFS' (W10) partition into it gaining 3GB?
mzee (3324)
1446127 2018-02-10 00:36:00 Windows has a swap file too...and uses the thing.

Linux can have a partition or a file. It's your choice.

And mine (file) is never used, I have checked. I have 16gb ram. Which is huge for Linux.....thats why.
piroska (17583)
1446128 2018-02-10 00:37:00 What will happen if I delete the swap partition, an extend the 'NTFS' (W10) partition into it gaining 3GB?
Nothing.
It will work fine without swap (unless of course you run out of free memory).
You can also make a swapfile on a regular partition if you want, and turn it on/off as required.
fred_fish (15241)
1446129 2018-02-10 00:38:00 There's a swappiness setting that I understand tends to be a bit too aggressive and can be safely turned down.
As to the shortening of the SSD's life, sure might reduce it down to 15-20 years instead of 20+ The whole SSD lifespan thing is not an issue for most real world use, swap files or not.

Here's some tips for Linux and SSDs, including the swappiness setting sites.google.com
Leave the swap file alone and change the setting IMHO.
dugimodo (138)
1