Linux advocate urges distros to default to swap files over swap partitions
A Linux user is publicly arguing that swap files, not swap partitions, should be the default choice during OS installation. They note that swap files have matched swap partitions in performance for over two decades, while being far easier to create, resize, or remove after setup using simple commands like fallocate and mkswap.
GoKawiil's interpretation of the reporting above, not reported fact.
Many Linux distributions still default to partition-based swap during installation, locking users into a fixed disk layout that's cumbersome to change later. Advocating for swap files instead reflects a broader push toward more flexible, maintainable system configurations, especially useful for cloud instances, containers, and general desktop users who may need to adjust memory management without repartitioning drives.
- Swap files have matched swap partition performance for over 20 years, per the argument.
- Swap files are simpler to create, resize, or delete than partitions post-installation.
- The setup process involves basic commands: fallocate, chmod, mkswap, and swapon.
How Linux Works" by Brian Ward — If tinkering with swap files, fallocate, and fstab entries is your idea of fun, this No Starch Press classic explains what's actually happening under the hood—memory management, filesystems, boot process, and all. It's the perfect companion for turning copy-pasted terminal commands into real understanding of your system.
See How Linux Works" by Brian Ward on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: gist.github.com, 2026-09-08
Published there as: “Stop making swap partitions–use swap files instead”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.