使用交换空间而不是 RAM 会大大降低PC 的速度。
那么为什么当我有足够多的可用 RAM 时,我的 Linux 系统 (Arch) 会使用交换区吗?
在下面查看我的 conky 输出:

另外,这可能是我遇到的速度和系统响应问题的原因吗?
的输出free -m:
$ free -m
total used free shared buffers cached
Mem: 1257 1004 252 0 51 778
-/+ buffers/cache: 174 1082
Swap: 502 144 357
Run Code Online (Sandbox Code Playgroud) 我使用 unix 已经有一段时间了,在过去的几年里,我觉得交换是一个时代错误,但我很好奇其他人的想法。
我的论点大致是这样的(假设没有全局 ulimit 或 OOM 设置的摆弄):
There is little value in swap because if you need to swap out to disk,
odds are it's going to be a vicious cycle where an app will continue
to eat not only real memory, but swap as well until it gets OOM
reaped (_if_ it gets OOM reaped).
If you have swap enabled, it will only prolong this death march to
the detriment of other processes - and in the worst …Run Code Online (Sandbox Code Playgroud)