You are not logged in.

#1 2023-12-16 08:59:02

an4oud
Member
Registered: 2016-12-17
Posts: 28

swapfile & discard

Is it necessary, when using swap as a file (and not a separate partition) on an ssd, to apply the discard option to it?
Fstrim is already regularly done for the file system on which the swapfile is located.

Offline

#2 2023-12-16 10:12:17

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: swapfile & discard

Discard & fstrim aren't really needed for modern SSDs. They are over-provisioned and they have their own hardware-based garbage collection mechanisms.

Offline

Board footer

Powered by FluxBB