大家系统卡死后如何解决的?
Tofloor
poster avatar
180******72
deepin
2017-07-13 01:34
Author
发现有个致命的bug,就是用着突然系统会卡死,就刚刚我只是正常的使用,然后在chrome里打开一个标签页就卡死了。卡死了无所谓,有办法可以kill掉些进程什么的能恢复使用也好,但是不知道如何操作,反正等了好久也没恢复,只能强制关机重启。这个很伤, 大家是如何处理这种情况的?
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
jingle
deepin
2017-07-13 01:41
#1
进入 tty 下面 top  kill 进程
Reply View the author
Comments
yexiaorain
2017-07-17 20:25
1
avatar
jingle
deepin
2017-07-13 01:41
#2
Reply View the author
avatar
180******72
deepin
2017-07-13 01:45
#3
https://bbs.deepin.org/post/142409
进入 tty 下面 top  kill 进程

卡死后什么都打不开,终端也打不开了。点什么都没反应
Reply View the author
avatar
danieltaoys
deepin
2017-07-13 01:48
#4
我之前也有这个情况,貌似Deepin默认关闭了交换SWAP分区,我打开了SWAP后系统流畅度骤升!配置CPU Intel赛扬 E3400@2.6GHz/G41 GMA集显/2GB DDR3 1333内存/320GB HDD,操作系统是 Deepin 15.4.1
Reply View the author
Comments
ashertan
2017-07-13 01:50
你这个signature是怎么设置的啊
avatar
jingle
deepin
2017-07-13 01:50
#5
https://bbs.deepin.org/post/142409
卡死后什么都打不开,终端也打不开了。点什么都没反应

ctrl+alt+f2
Reply View the author
avatar
cheyang
deepin
2017-07-13 02:03
#6
我今天也遇到突然卡死,点什么程序都没反应。鼠标可以动,但是点击程序没反应鼠标右键啥也出不来,
Reply View the author
avatar
herdde
deepin
2017-07-13 02:03
#7

能不能让它不卡死?
Reply View the author
avatar
duanyao
deepin
2017-07-13 02:10
#8
试试我的建议:发现一个能有效避免内存不足导致的卡死的软件:earlyoom
https://bbs.deepin.org/post/141744
Reply View the author
avatar
comzhong
deepin
2017-07-13 02:12
#9
danieltaoys 发表于 2017-7-12 17:48
我之前也有这个情况,貌似Deepin默认关闭了交换SWAP分区,我打开了SWAP后系统流畅度骤升!配置CPU Intel赛 ...

2G 内存用x64位不太,最好最低4G内存
Reply View the author
avatar
duanyao
deepin
2017-07-13 02:17
#10
https://bbs.deepin.org/post/142409
卡死后什么都打不开,终端也打不开了。点什么都没反应

如果 alt+f2 也打不开终端,那么你需要 alt + sysrq + f 。

先修改 /etc/sysctl.d/99-sysctl.conf (也可能是同一目录下的其它名字),把 kernel.sysrq=0 (或其它值)改为 kernel.sysrq=1 。然后重启或 sudo sysctl kernel.sysrq=1。

在卡死后,按下组合键 alt + sysrq + r  然后按 alt + sysrq + f ,这是为了手工执行 oom killer。oom killer 可能要延迟几秒钟才执行,所以不要急不可耐的反复按 alt + sysrq + f ,以免杀掉很多无辜进程。sysrq 就是 print screen 键。
Reply View the author
avatar
herdde
deepin
2017-07-13 02:24
#11
https://bbs.deepin.org/post/142409
试试我的建议:发现一个能有效避免内存不足导致的卡死的软件:earlyoom
https://bbs.deepin.org/forum.php ...

最好系统能自己解决,不让它卡死
Reply View the author
avatar
duanyao
deepin
2017-07-13 02:30
#12
https://bbs.deepin.org/post/142409
最好系统能自己解决,不让它卡死

让 earlyoom 成为系统的一部分就解决了,虽然不像 android 那样完美。
Reply View the author
avatar
arlen
deepin
2017-07-13 02:32
#13
唉,我一直都是强制断电重启的。
Reply View the author
avatar
herdde
deepin
2017-07-13 02:52
#14
https://bbs.deepin.org/post/142409
让 earlyoom 成为系统的一部分就解决了,虽然不像 android 那样完美。

这个是一直在动的
Reply View the author
avatar
duanyao
deepin
2017-07-13 02:57
#15
https://bbs.deepin.org/post/142409
这个是一直在动的

嗯,earlyoom 每100毫秒检查一次剩余内存。不过它是个后台服务,你没必要在前台运行它。
Reply View the author
avatar
herdde
deepin
2017-07-13 02:59
#16
https://bbs.deepin.org/post/142409
嗯,earlyoom 每100毫秒检查一次剩余内存。不过它是个后台服务,你没必要在前台运行它。 ...

那怎么运行,它是开机自启动的?
Reply View the author
avatar
duanyao
deepin
2017-07-13 03:01
#17
https://bbs.deepin.org/post/142409
那怎么运行,它是开机自启动的?

是的,执行 sudo systemctl enable earlyoom 就是让它自启动。
Reply View the author
avatar
134******40
deepin
2017-07-13 03:36
#18
https://bbs.deepin.org/post/142409
试试我的建议:发现一个能有效避免内存不足导致的卡死的软件:earlyoom
https://bbs.deepin.org/forum.php ...

试过后感觉这软件靠谱。最近好像没有出现卡死现象了,可能需要多打开几个程序来验证下才可以。
Reply View the author
avatar
duanyao
deepin
2017-07-13 03:47
#19
https://bbs.deepin.org/post/142409
试过后感觉这软件靠谱。最近好像没有出现卡死现象了,可能需要多打开几个程序来验证下才可以。 ...

你可以查看日志里有没有杀进程的记录:sudo journalctl -a | grep earlyoom
要快速验证其效果,可以运行 memory_overcommit.cc 程序,在我那个帖子里也讲了用法。
Reply View the author
avatar
wildlife
deepin
2017-07-13 04:50
#20
按住 Alt + SysReq 键不放,再依次按 R 、S、E、I、U、B 安全重启

https://wiki.deepin.org/index.ph ... F%E6%AD%BB%E6%9C%BA
Reply View the author
Comments
ashertan
2017-07-13 18:41
想要有不重启的办法,看来最好的方式还是能进入到tty里,杀掉一些导致卡死的进程
1 / 2
To page