20的内存策略改变了?
Tofloor
poster avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-23 07:06
Author
希望有deepin的大佬解答一下

新版DDE有时候会突然卡住什么也动不了,测试是磁盘io爆了,发现一个奇怪的现象

15.11的时候,如果内存不用满,swap是1k都不想给你用

现在我把firefox放后台,他就在不断写入swap,尽管内存还有一半

这是deepin模仿Windows内存策略么?还是火狐新版的神奇能力?

https://bbs.deepin.org/user/101846
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-23 07:08
#1
在从前,swap这里几乎就是空的
现在竟然不是了!
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-23 07:09
#2
在从前,swap这里几乎就是空的
现在竟然不是了!
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-23 14:51
#3
自己顶一下
Reply View the author
avatar
zhangn1985
deepin
2020-04-23 15:11
#4
自己改swapiness
Reply View the author
avatar
Rubbish
deepin
2020-04-23 16:48
#5
我15.11,有时候会一直用到内存90%多才往swap放,有时候只用了50%,kswapd0就开始工作,cpu占用超高了
Reply View the author
avatar
星外之神
deepin
2020-04-23 17:18
#6
我的交换空间只用了0.08GB
Reply View the author
avatar
aida
deepin
2020-04-23 18:02
#7
应该没有改变

sudo sysctl vm.swappiness
看一下
Reply View the author
avatar
星外之神
deepin
2020-04-23 18:15
#8
https://bbs.deepin.org/post/192660
应该没有改变

sudo sysctl vm.swappiness

60         
Reply View the author
avatar
aida
deepin
2020-04-23 18:18
#9

那就没啥事,一般默认的就是60
Reply View the author
avatar
linux000
deepin
2020-04-23 18:54
#10

我的是10。现在甚是不错。
Reply View the author
avatar
houyawei
deepin
2020-04-23 19:24
#11
https://bbs.deepin.org/post/192660
我的是10。现在甚是不错。

我的也是10,是不是v20默认是10
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-23 19:27
#12
https://bbs.deepin.org/post/192660
那就没啥事,一般默认的就是60

vm.swappiness = 10
默认是10么?
是占用10%之后就开始主动swapin么?
Reply View the author
avatar
BG7ZAG
deepin
2020-04-23 19:36
#13
我的也是10
Reply View the author
avatar
linux000
deepin
2020-04-23 19:53
#14
https://bbs.deepin.org/post/192660
我的也是10,是不是v20默认是10

不清楚,不是说了默认60。我是升上去的。数字越低越不用swap。
Reply View the author
avatar
昨夜的星辰
deepin
2020-04-23 21:05
#15
如果不搞开发不搞那些特别费内存的活儿,内存8G以上的建议直接把swap关掉
Reply View the author
avatar
meier
deepin
2020-04-23 21:46
#16

没有启用
Reply View the author
avatar
aida
deepin
2020-04-23 21:52
#17
https://bbs.deepin.org/post/192660
vm.swappiness = 10
默认是10么?
是占用10%之后就开始主动swapin么?

这个值(0-100)越低,交换空间的使用率也会越低

Reply View the author
avatar
aida
deepin
2020-04-23 21:53
#18
如果你的内存够大可以把swap关闭,我就把swap关掉了
Reply View the author
avatar
ghostry
deepin
2020-04-23 21:54
#19
这个值,我一直用的 0
Reply View the author
avatar
星外之神
deepin
2020-04-23 22:41
#20
https://bbs.deepin.org/post/192660
vm.swappiness = 10
默认是10么?
是占用10%之后就开始主动swapin么?

百分之90
Reply View the author
1 / 2
To page