I am reading some tutorials about swap for Ubuntu and in general for other distributions. Mostly from:
From there, it refers to other valuable tutorials of the same domain, of course all about swap, among them the information is well covered and very well explained.
According with them: if the PC/Laptop has either 8GB or less is recommended use swap how a dedicated partition - it normally x2 of the current RAM capacity available (mostly when Hibernating is applied). Until here I am ok for some laptops and old PC Desktops. Be aware, they have HDD about their hard-disks.
Something of my concern is that use swap impacts the SSD's lifespan, so is suggested use swap file instead. It is suggested for other scenario about to avoid resize the swap partition
So until here swap file is valuable for:
- Accomplish a manual administration about the swap size without a partition being involved and to avoid harm the SSD lifespan
So I want to know if is a recommendable apply the swap file approach for these PC/Laptops with either 4GB and 8GB of RAM - currently they have HDD but some of them would be upgraded to SSD when themselves passed/gone away
The goal is have one standard approach and avoid use the swap partition. I think the manual administration is flexible than a raw/fixed partition.
Therefore:
- Is wise and safe use swap file for PCs/Laptops of 8GB or less?
it without matter if the hard disks are currently either HDD or SSD.
About SSD Lifespan
This case is mentioned here:
- How to Create a Swap File in Linux
- Why are swap partitions discouraged on SSD drives, are they harmful?