Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
swappiness 重启后重置为0
Experiences and Insight
604
views ·
1
replies ·
To
floor
Go
ij******ce@163.com
deepin
2017-12-10 20:55
Author
系统 目前最新。
内存 15.6G 偶尔不够用,配置了16G swap,修改 /etc/sysctl.conf 添加 vm.swappiness = 20 但是重启后 cat /proc/sys/vm/swappiness 输出为10 !
sudo sysctl -p 再次 cat /proc/sys/vm/swappiness 输出20 接着模拟占用内存,发现内存用到15G的时候才开始使用swap,全部15.6G !
怎么破?
Reply
Like 0
Favorite
View the author
All Replies
ij******ce@163.com
deepin
2017-12-10 21:15
#1
写到 /etc/sysctl.d/vm.swappiness.conf 文件里,重启后不会重置,但是依旧是内存占用到了15G的时候才开始用swap 空间。全部15.6G,而且vm.swappiness = 20 啊!
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Looking Deepin ci 25.2.0 Developer/Unstable repositories
Popular Events
More
内存 15.6G 偶尔不够用,配置了16G swap,修改 /etc/sysctl.conf 添加 vm.swappiness = 20 但是重启后 cat /proc/sys/vm/swappiness 输出为10 !
sudo sysctl -p 再次 cat /proc/sys/vm/swappiness 输出20 接着模拟占用内存,发现内存用到15G的时候才开始使用swap,全部15.6G !
怎么破?