[Topic DIscussion] 关于交换分区swap
Tofloor
poster avatar
Jien
deepin
2022-09-11 08:01
Author

听网上说开设swap会破坏硬盘,我就想知道这种破坏力有多大,我现在都不敢开设了

Reply Favorite View the author
All Replies
一醉陶然
deepin
2022-09-11 08:15
#1

有那么神奇的swap吗?

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-09-11 08:41
#2

Windows会自动开这个

如果你内存太小,自然会损害硬盘,因为会频繁写入读取硬盘

Reply View the author
牧野
deepin
2022-09-11 09:46
#3

我电脑只有8G内存,从来不开swap。用着一切正常。

Reply View the author
jjcui8595
deepin
2022-09-11 14:47
#4

如果内存较大,且不需要休眠,就没有必要使用swap

Reply View the author
SamLukeYes
deepin
2022-09-11 15:33
#5

https://farseerfc.me/zhs/in-defence-of-swap.html

关于 swap 的谣言有很多,这里有比较靠谱的解释

Reply View the author
ljq790615
deepin
2022-09-11 17:26
#6

如果Windows系统,交换页面确实频繁读取硬盘,大内存还是关闭好;

对于Linux系统,内存管理机制很魔幻,建议适当保留swap,一般情况下并不会频繁读取硬盘,也就不存在所谓的损坏硬盘。否则Linux早就活不下去了。

Reply View the author
ljq790615
deepin
2022-09-11 17:26
#7
It has been deleted!
ljq790615
deepin
2022-09-11 17:26
#8
It has been deleted!
sukanka
deepin
2022-09-11 20:05
#9

所以我直接不开 swap, 内存完全够用

Reply View the author
SamLukeYes
deepin
2022-09-11 20:22
#10
sukanka

所以我直接不开 swap, 内存完全够用

羡慕有钱人,我还是得开 zram swap 的tail

Reply View the author
来自Ubuntu的某位用户
deepin
2022-09-11 21:13
#11

我一定会分swap分区的,并且会将swap分区大小分为RAM的2倍

Reply View the author
SamLukeYes
deepin
2022-09-11 21:20
#12
来自Ubuntu的某位用户

我一定会分swap分区的,并且会将swap分区大小分为RAM的2倍

实际上不用这么多,参见:https://farseerfc.me/zhs/in-defence-of-swap.html#id17

Reply View the author
Jien
deepin
2022-09-16 17:08
#13

卧槽,windows会自动开,那我就放心了,我以为只有linux会使用硬盘当内存

Reply View the author