If I create a swap partition on my boot drive, does TrueNAS automatically use it

Robert Townsend

Dabbler
Joined
Dec 11, 2016
Messages
20
I've seen the posts about creating swap partitions. I've also seen the complicated scripts additions to fstab etc. that run at initialization time. The later is a couple years old and for FreeNAS. I've also seen that core installation offers to create a swap partition on boot if the boot drive is large enough.
So - if installation does add a swap partition, does it also add some magic config changes - or does TrueNAS look for a swap partition on the boot drive by default? I used a couple tricks to preserve space on my NVME drive, but I'd like to take advantage of it's speed for swap space.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
No, it's not currently used unless you have no pool disks.

SWAP is something you never want to use in any case, so the small allocation on each pool disk should usually cover the minor requirement to have it "just in case" (where it would prevent a system crash, but not much more).
 
Top