EndeavourOS: installation - decisions: to swap or not !?

thedighubs

Member
Nov 21, 2024
73
6
16
Hi good day dear Community


, I'm lovin Endeavor.

I use my PC for office and some things more so it must be kind of safe and fast. I also like the rolling release idea of Endeavour-Community, so i really really love the arch based distro.

My personal start config would be:

  • File System - not necessarily BTRFS because i do not have too much experience with BTRFS) and besides i do not work with snapshots
  • File System - more likely ext4
  • DE; LXQT more likely than Plasma KDE: I really can better work with kde than gnme - but a lightweight DE like LXQT or Xfce fit better on the older Thinkpad x 220 or T430 and T 530,

But what about the swap options? I don't use hibernate, i think hibernation is useless and cause more problems than reboot and shutdown.
What do you think about a swap file on my system ssd as a backup

Any and all tipps are wellcome


see hibernation: https://wiki.ubuntuusers.de/Ruhezustand/
Hibernation occurs when the state of a running system is frozen, saved, and then the computer is shut down. When the computer is turned on again, the previous state is restored 1:1, including all open windows and running programs.
Other terms are hibernate or suspend-to-disk (roughly: "temporarily interrupting operation by writing the state to the hard disk"). In contrast to suspend-to-RAM, a less deep sleep state, no power is required in hibernation. In principle, the computer can be put into hibernation as described below. This, or waking up later (resume), does not always work, and this article is intended to assist with setting up "hibernate/resume."
The easiest way to set up "hibernate/resume" is with a separate partition for swap[1], and this article is limited to that. However, it can also be done with a swap file. The article Hibernation/Swap File will soon describe the special features to be observed.

Requirements and Preparation
When entering hibernation, the RAM state is written to a swap area[1]. This must exist on a mass storage device (HDD or SSD) and be sufficiently large. A swap area in RAM is not suitable.
All active swap areas are displayed with the command[2]:

systemctl --type swap

The extended command lists all swap areas known to the system (e.g., from the fstab file):

well besides this explanation - which i do not fully understand - i would love to hear from you.
 
Last edited:

lxskllr

No Lifer
Nov 30, 2004
58,896
9,236
126
I have a 9GB swap partition on my machine. That was the custom when I installed the system. Swap *files* have become more common, and if I were to do it today, I'd use a swap file rather than a partition. Disk space is too cheap to go without one imo. Mine barely gets touched, but it's cheap insurance.
 
Reactions: thedighubs

mikeymikec

Lifer
May 19, 2011
19,743
13,675
136
My Mint system has 32GB RAM and a 1GB swap partition. The choice to go for that size of swap was probably suggested by Linux Mint on my old Haswell system (12GB RAM).

I'm using Linux for basic productivity (office apps, web browsing, email, calendar) + a few Windows VMs. I also dual-boot Win11 for gaming, hence the amount of RAM. If I use up 32GB RAM on Linux, I'm doing something wrong
 

manly

Lifer
Jan 25, 2000
12,780
3,571
136
OP's older laptop is likely memory constrained (i.e. 4GB) so swap is a must. A swap file on the root FS is fine; if disk space isn't tight, I'd go with about 4GB.

IIRC outside of embedded use cases (or Android), virtually all Linux systems should have a bit of swap available. No real harm if it goes unused.
 
Reactions: thedighubs
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |