Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3395

Do I need a swap partition/file?

$
0
0
I am new to Debian but have experience with Unix/Linux for a couple of decades.

For the past almost a decade other distributions automatic disk configurations seem to no longer install swap partition.

I just installed Cinnamon version of Debian from Live USB onto a USB thumb drive, the automated system installed swap partition equal to my RAM size, which is a significant fraction of the 128 GB thumbdrive....

The 'other' distributions I have experienced now use a swap to ram scheme (zram or is it zswap?) and do not configure any swap file or partition at all.

On my older hardware with 8GB Ram occasionally I would notice swapping, and close a couple of windows on the desktop to stop it. Also I would use S4 hibernate to disk sometimes.

My newer hardware has 32GB and 64GB of ram and I never notice swapping any more... Since portable devices can be left on the bus seat or at the coffee shop, I maximize security of data inside by encrypting drives and enabling kernel lockdown mode. These disable S4 and newest hardware uses S0ix suspend modes nowadays.

How big should I make my zram space so I can remove swap partition and use space for data storage?? Debian has the capability in package repository...

On systems with a couple of TB system drives and little worry about full disks anymore , whats a few tens of GB among friends?? Although swap to ram is LOTS faster than swap to disk...

Statistics: Posted by Usedtoberich — 2025-02-20 20:48 — Replies 3 — Views 147



Viewing all articles
Browse latest Browse all 3395

Trending Articles