swapfile question

RW rwmaillists at googlemail.com
Mon May 14 00:22:50 UTC 2018

On Sat, 12 May 2018 08:39:52 -0700
Waitman Gobble wrote:

> I use Warren Block's SSD setup and create swap file, seems to work
> A-OK.
> http://www.wonkity.com/~wblock/docs/

Swap files are certainly more flexible, but I think the argument about
TRIM is wrong. My understanding is that to UFS the swap activity on a
swap file is just reads and writes in the file. Short of deleting the
file I don't think you would get any trims. From that perspective swap
files are slightly worse because when you create the file with dd you
are telling the SSD that all of it holds data.

More information about the freebsd-questions mailing list