Swap Space Debate

Comments debate whether to enable, disable, or replace traditional swap with alternatives like zram/zswap, focusing on performance, SSD wear, memory fragmentation, and systems with ample RAM.

➡️ Stable 0.5x DevOps & Infrastructure
3,090
Comments
20
Years Active
5
Top Authors
#3228
Topic ID

Activity Over Time

2007
2
2008
15
2009
25
2010
51
2011
70
2012
121
2013
88
2014
114
2015
42
2016
61
2017
287
2018
153
2019
310
2020
146
2021
323
2022
356
2023
279
2024
317
2025
322
2026
8

Keywords

RAM e.g SSD away.html HDD AWS EBS FGA OOM VM swap ram memory swapping disk systemd pages ssd dev configured

Sample Comments

_0w8t Feb 5, 2023 View on HN

Sensibly configured compressed memory brings benefits of swap without much of its shortcomings. So use that, not swap.

sroussey Dec 9, 2010 View on HN

I hope they are running with swap turned off...

kobalsky Aug 4, 2022 View on HN

sometimes it's an alternative to just disable swap.

ithkuil Feb 25, 2014 View on HN

why not turn off swap entirely?

number6 Jan 20, 2023 View on HN

If you have SSD you can pretty good use swap

ericfrederich Feb 24, 2015 View on HN

4.5 petabytes of RAM... that's what swap is for.

mrmondo Jan 6, 2015 View on HN

Imagine the swap file it would need!

anonymoushn Nov 29, 2022 View on HN

Pages still exist even if you disable swap. Maybe you could benefit from reading TFA?

rollcat Feb 24, 2021 View on HN

You may want to reconsider whether you want swap disabled:http://jdebp.uk./FGA/dont-throw-those-paging-files-away.html

speedgoose Sep 27, 2023 View on HN

If you have enough storage to use as swap, it should.