[Share Experiences] linux swap交换分区(详解)
Tofloor
poster avatar
andktan
deepin
2022-03-25 05:39
Author

linux swap交换分区(详解)见下贴,感觉不错

https://m.jb51.net/article/220309.htm

Reply Favorite View the author
All Replies
SamLukeYes
deepin
2022-03-25 05:58
#1

这篇文章对于 swappiness 的介绍有一点小错误,swappiness 的上限其实是 200。当 swappiness 大于 100 时,交换内存脏页的优先级会大于清除缓存。我自己设置的值是 120,因为我只用 zram 而不用硬盘上的 swap。

更多关于 swap 的解释可以参考:https://farseerfc.me/zhs/in-defence-of-swap.html

Reply View the author
说书人
deepin
2022-03-25 06:28
#2
SamLukeYes

这篇文章对于 swappiness 的介绍有一点小错误,swappiness 的上限其实是 200。当 swappiness 大于 100 时,交换内存脏页的优先级会大于清除缓存。我自己设置的值是 120,因为我只用 zram 而不用硬盘上的 swap。

更多关于 swap 的解释可以参考:https://farseerfc.me/zhs/in-defence-of-swap.html

我去,这是我见过的,把swap解释的最清楚的文章。

获益匪浅,感谢分享。

Reply View the author
andktan
deepin
2022-03-25 19:06
#3
SamLukeYes

这篇文章对于 swappiness 的介绍有一点小错误,swappiness 的上限其实是 200。当 swappiness 大于 100 时,交换内存脏页的优先级会大于清除缓存。我自己设置的值是 120,因为我只用 zram 而不用硬盘上的 swap。

更多关于 swap 的解释可以参考:https://farseerfc.me/zhs/in-defence-of-swap.html

另开眼界,学习 了

Reply View the author