Author Topic: Swap partition or Swap File  (Read 726 times)

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 1040
  • Karma: +0/-0
    • View Profile
Swap partition or Swap File
« 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. 
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Tried Mint 19, but too many bugs. Went back to Mint 18.3
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline fox

  • Posting Member
  • Hero Member
  • *
  • Posts: 1255
  • Karma: +3/-0
    • View Profile
Re: Swap partition or Swap File
« Reply #1 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.
Ubuntu 19.10 and openSUSE Leap on 2011 iMac
Linux Mint Cinnamon 19.2 on "late 2015" 5k iMac
Ubuntu 19.10 and 18.04 on Dell XPS 13 2 in 1

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 1040
  • Karma: +0/-0
    • View Profile
Re: Swap partition or Swap File
« Reply #2 on: January 21, 2019, 10:24:22 am »
I didn't know anything about this swap file business. I wonder what Mint 19 uses?
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Tried Mint 19, but too many bugs. Went back to Mint 18.3
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline fox

  • Posting Member
  • Hero Member
  • *
  • Posts: 1255
  • Karma: +3/-0
    • View Profile
Re: Swap partition or Swap File
« Reply #3 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.
« Last Edit: January 21, 2019, 12:31:00 pm by fox »
Ubuntu 19.10 and openSUSE Leap on 2011 iMac
Linux Mint Cinnamon 19.2 on "late 2015" 5k iMac
Ubuntu 19.10 and 18.04 on Dell XPS 13 2 in 1

Offline Jason Wallwork

  • President
  • Administrator
  • Hero Member
  • *****
  • Posts: 2167
  • Karma: +5/-0
    • View Profile
Re: Swap partition or Swap File
« Reply #4 on: January 21, 2019, 06:52:45 pm »
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.
Primary: Dell Desktop i5 - 3.2 GHz w/ Kubuntu 19.04 / Win 10 Pro
Secondary/Test:  Toshiba i3 - 1.4 GHz w/ Windows 10 Pro and Linux Du Jour (Ubuntu 19.10 right now)
Sony Xperia XA1 Ultra ( Android 8 ) on Freedom
Huawei MediaPad T3 10 ( Android 7 ) on Virgin

Offline fox

  • Posting Member
  • Hero Member
  • *
  • Posts: 1255
  • Karma: +3/-0
    • View Profile
Re: Swap partition or Swap File
« Reply #5 on: January 21, 2019, 07:15:46 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 19.10 and openSUSE Leap on 2011 iMac
Linux Mint Cinnamon 19.2 on "late 2015" 5k iMac
Ubuntu 19.10 and 18.04 on Dell XPS 13 2 in 1