Peterborough Linux User Group (Canada) Forum

Linux & Android => Articles, Tutorials and Tips => Topic started by: ssfc72 on January 21, 2019, 08:55:46 AM

Title: Swap partition or Swap File
Post by: ssfc72 on January 21, 2019, 08:55:46 AM
https://distrowatch.com/weekly.php?issue=20190121#qa

A good article about the advantages and disadvantages of both. 
Title: Re: Swap partition or Swap File
Post by: fox on January 21, 2019, 09:47:37 AM
Yep; read it last night. In my case, I tried adding a swap partition to Ubuntu on my laptop to see if this would result in "proper" (i.e. very low energy use) hibernation. Unfortunately it didn't. Ubuntu by default presently uses a swap file rather than a swap partition.
Title: Re: Swap partition or Swap File
Post by: ssfc72 on January 21, 2019, 10:24:22 AM
I didn't know anything about this swap file business. I wonder what Mint 19 uses?
Title: Re: Swap partition or Swap File
Post by: fox on January 21, 2019, 11:18:18 AM
I think that a Mint default installation would use a swap partition rather than a swap file. Looking at my Mint cinnamon installation on my iMac, I have a swap partition and I don't recall doing anything special to create it. Ubuntu used to create swap partitions by default; this changed to a swap file with 18.04 LTS.
Title: Re: Swap partition or Swap File
Post by: Jason on January 21, 2019, 06:52:45 PM
Quote from: fox on January 21, 2019, 09:47:37 AM
Yep; read it last night. In my case, I tried adding a swap partition to Ubuntu on my laptop to see if this would result in "proper" (i.e. very low energy use) hibernation. Unfortunately it didn't. Ubuntu by default presently uses a swap file rather than a swap partition.

Did you create it equal to or larger than the amount of RAM you have? You'd need that for hibernation.
Title: Re: Swap partition or Swap File
Post by: fox on January 21, 2019, 07:15:46 PM
Quote from: Jason Wallwork on January 21, 2019, 06:52:45 PM
Did you create it equal to or larger than the amount of RAM you have? You'd need that for hibernation.
Yes, I did, for the reason you suggested.