• 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 23.10 on 2019 5k iMac
Ubuntu 22.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 23.10 on 2019 5k iMac
Ubuntu 22.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.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

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 23.10 on 2019 5k iMac
Ubuntu 22.04 on Dell XPS 13