[Share Experiences] 内存占用过高后整个系统卡死,什么都做不了,你们有这种情况吗?
Tofloor
poster avatar
妖刀
deepin
2021-09-23 22:59
Author

每次内存占用超过90%,系统整个就卡死了,鼠标都动不了,更别说打开任务管理器了,这是桌面版linux的通病吗?

Reply Favorite View the author
All Replies
depend
deepin
2021-09-23 23:45
#1

感觉是linux的通病,windows其实也是,不过windows很高的时候会开始帮你清理内存

Reply View the author
铁山老道孔乙己
deepin
2021-09-24 00:52
#2

是linux的毛病,在ubuntu下也是这个样子。

Reply View the author
177******61
deepin
2021-09-24 02:30
#3

安装ealryoom即可.会自动kill掉部分进程避免系统卡死.

另外默认的earlyoom策略可能太敏感,我是设置成小于3%可用内存时候开始kill效果就刚刚好.

Reply View the author
yohow
deepin
2021-09-24 12:25
#4

百度搜索一下开启zswap就可以解决了

Reply View the author
天天向上
deepin
2021-09-24 23:22
#5

最好的解决办法是直接加内存

Reply View the author
妖刀
deepin
2021-09-24 23:30
#6
天天向上

最好的解决办法是直接加内存

已经加过内存了,还是不够用

Reply View the author
thepoy
deepin
2021-09-25 16:38
#7

16G还不够的话,就换个 linux 发行版吧,dde 内存占用不低。

Reply View the author
snow
deepin
2023-11-03 20:20
#8

deepin经常显示内存使用超过90%(设置虚拟内存,增加swap)
使用root权限
dd if=/dev/zero of=/root/swapfile bs=1M count=16384 #增加16G交换空间(8G就是8192)
mkswap /root/swapfile #建立swap的文件系统
swapon /root/swapfile #启用swap文件
echo "/root/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab #更新fstab文件 开机自动启用
验证有没有成功方法 重启电脑 再次打开终端
su
cat /proc/swaps #查看swap
free -h 命令查看当前系统内存使用情况,包括物理内存和交换空间(swap)

Reply View the author