Swap on SSD

John Levine johnl at iecc.com
Fri Feb 9 03:31:04 UTC 2018


In article <99D367C9-ADF4-41EB-8D4F-5D5F3B0C7ABF at kreme.com> you write:
>>> Should the installer then be creating a dedicated swap partition? It
>>> seems not.
>> 
>> 	Yes of course it should, it's the place where pages that aren't
>> backed by storage can be written to when needed.
>
>That seems easily solved (just as well) by a swapfile.

FreeBSD lets you have either or both, but a swap partition is faster.

If you use a swap partition, block N is at disk location B+N where B
is the base of the partition.  If you use a swapfile, you have inodes
and indirect blocks and such, so random access to a large swapfile
might have to read one or two overhead blocks for every swap block.




More information about the freebsd-questions mailing list