Skip to content

Zram and physical swap #6289

Answered by MichaIng
seedboxer asked this question in Q&A
Apr 4, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

A lot of people say to use a 100 Plus vm.swapiness

Sounds unreasonable to me indeed. Any swap usage slows down the system so I'd always recommend 1 as lowest possible number. Some say that if rarely used data is swapped, there is more space for filesystem cache to speed up file reads for those cached ones. But I think the chance that some files which are read a few times during some process are needed later is often lower than the chance that data from a process which is hold in RAM are needed later. And often performance is not the only relevant aspect but disk wear as well.

As you have zram + disk swap working now, not much need to change it. But for completeness, if you want to test …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MichaIng
Comment options

@seedboxer
Comment options

@MichaIng
Comment options

Answer selected by seedboxer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants