General > General Technical Chat

Goodbye Windows, Hello Linux [advice needed for a Linux workstation at home]

<< < (33/46) > >>

nctnico:

--- Quote from: HoracioDos on January 23, 2019, 03:55:00 pm ---d) Swap. I still like a swap partition instead of a swap file.

--- End quote ---
Don't setup a swap partition. It will be too slow before it does you any good. If swap is on an SSD all it will do is trash your SSD sooner. Buying more memory is cheaper. It puzzles me why an OS still sets up a swap partition nowadays. I guess old habbits don't die easely.

Karel:

--- Quote from: nctnico on January 23, 2019, 06:55:23 pm ---
--- Quote from: HoracioDos on January 23, 2019, 03:55:00 pm ---d) Swap. I still like a swap partition instead of a swap file.

--- End quote ---
Don't setup a swap partition. It will be too slow before it does you any good. If swap is on an SSD all it will do is trash your SSD sooner. Buying more memory is cheaper. It puzzles me why an OS still sets up a swap partition nowadays. I guess old habbits don't die easely.

--- End quote ---

If I remember correctly,  hibernating requires a swap partition with a size >= RAM.

nctnico:

--- Quote from: Karel on January 23, 2019, 07:18:55 pm ---
--- Quote from: nctnico on January 23, 2019, 06:55:23 pm ---
--- Quote from: HoracioDos on January 23, 2019, 03:55:00 pm ---d) Swap. I still like a swap partition instead of a swap file.

--- End quote ---
Don't setup a swap partition. It will be too slow before it does you any good. If swap is on an SSD all it will do is trash your SSD sooner. Buying more memory is cheaper. It puzzles me why an OS still sets up a swap partition nowadays. I guess old habbits don't die easely.

--- End quote ---
If I remember correctly,  hibernating requires a swap partition with a size >= RAM.

--- End quote ---
That seems to be the case for Linux but you can disable using the swap space for swapping. However Linux won't touch swap space unless all memory is really in use. Windows always uses the swap space whether there is enough memory or not.

HoracioDos:

--- Quote from: nctnico on January 23, 2019, 06:55:23 pm ---Don't setup a swap partition. It will be too slow before it does you any good. If swap is on an SSD all it will do is trash your SSD sooner. Buying more memory is cheaper. It puzzles me why an OS still sets up a swap partition nowadays. I guess old habbits don't die easely.

--- End quote ---
Thanks for the advice, but I don't care too much. My notebook has 8GB RAM and a low swappiness threshold = 10. It should start swapping when 90% memory is full and it never did.
swapon --show
NAME      TYPE      SIZE USED PRIO
/dev/sda4 partition 3,8G   0B   -2
I guess I could create a 1.6Gb swap file (20% RAM size) and save some disk space.

This is an article from REDHAT blog about swap.
https://www.redhat.com/en/blog/do-we-really-need-swap-modern-systems

PS: Swap and SSD Trim
From Arch docs: "If using an SSD with TRIM support, consider using defaults,discard in the swap line in fstab." but in other Arch document you can read "Note: Continuous TRIM is not the most preferred way to issue TRIM commands among the Linux community. For example, Ubuntu enables periodic TRIM by default [5], Debian does not recommend using continuous TRIM [6] and Red Hat recommends using periodic TRIM over using continuous TRIM if feasible. [7]"
From Debian Docs: "Alternatively, and often not recommended: Set "discard" mount option in /etc/fstab for the ext4 filesystem, swap partition, Btrfs, etc.
The "discard" options is not needed if your SSD has enough overprovisioning (spare space) or you leave (unpartitioned) free space on the SSD."

NiHaoMike:
There's also the option of swap on zram.
https://en.wikipedia.org/wiki/Zram

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod