相关疑难解决方法(0)

当 RAM 中有足够多的可用空间时,为什么要使用交换?

使用交换空间而不是 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)

performance swap

154
推荐指数
5
解决办法
13万
查看次数

交换是不合时宜的吗?

我使用 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)

swap

46
推荐指数
3
解决办法
3604
查看次数

标签 统计

swap ×2

performance ×1