FreeBSD swap

vm.defer_swapspace_pageouts と vm.disable_swapspace_pageouts
デフォルトはどちらも0

vm.defer_swapspace_pageouts

vm.defer_swapspace_pageouts causes the system to avoid using swap,
if possible. With the option enabled, the VM system will still
evict clean pages and read them in again from the filesystem when
necessary, but it will only write dirty pages to the swap
partition as a last resort.

documentation on sysctl vm.defer_swapspace_pageouts?

可能であればスワップを使用しない?
Linuxのswappiness=0のような挙動になる?

(2017/12/15 FreeBSD 11.1で項目なくなってた)

Log: vm.defer_swapspace_pageouts was removed in r308474.

vm.disable_swapspace_pageouts

(2023/09/28 vm.disable_swapspace_pageouts はFreeBSD 13.2で項目確認)

スワップを使用しない?

両方を設定する例がおおい

vm.defer_swapspace_pageouts=1
vm.disable_swapspace_pageouts=1

swapをOFFにしてみる | サーバいじくり雑記
FreeBSD kernel tuning