スワップはパーティションとファイルどちらがいいのか
2025年時点の結論としては、スワップファイルの方が柔軟ではあるけど、特にBtrfsの場合は複雑で問題もあるのでスワップパーティションが推奨される。
これは2021年の記事なので古くなっているが、Linus Torvalds issues early Linux Kernel update to fix swapfile SNAFUに
And, as far as I know, all the normal distributions set things up with swap partitions, not files, because honestly, swapfiles tend to be slower and have various other complexity issues.
とある。