• Welcome to Peterborough Linux User Group (Canada) Forum.
 

Swap partition or Swap File

Started by ssfc72, January 21, 2019, 08:55:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ssfc72

Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

fox

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.
Ubuntu 26.04 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

ssfc72

I didn't know anything about this swap file business. I wonder what Mint 19 uses?
Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

fox

#3
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.
Ubuntu 26.04 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

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.
* Zorin OS 17.3 Core on a Dell Precision 3630 Tower with an i5-8600 six-core processor running at 3.1 GHz (4.3 GHz turbo), 16 GB of RAM, a 512 GB M.2 drive, and a GeForce 1060 card w/ 6 GB of VRAM
* Motorola Edge (2022) phone with Android 15

fox

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.
Ubuntu 26.04 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13