Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
为什么老是卡死
Experiences and Insight
538
views ·
6
replies ·
To
floor
Go
lwcloud1991
deepin
2017-07-28 01:57
Author
启动后随便打开应用,点着点着就卡死,你们没遇到么,,,,
Reply
Like 0
Favorite
View the author
All Replies
jingle
deepin
2017-07-28 02:50
#1
卡死要具体看,内存不足?
Reply
Like 0
View the author
baoding-fenshuajiang_Odoo
deepin
2017-07-28 03:04
#2
4G内存我也碰到过这种情况,整成8G内存就没有这种现象了。
Reply
Like 0
View the author
BingoLove
deepin
2017-07-28 03:46
#3
本帖最后由 BingoLove 于 2017-7-27 19:49 编辑
chrome浏览器?我以前也是,多开几个网页就卡死了。表现是硬盘等长亮。笔记本机械硬盘,4G内存,没swap
后来开了4G 的swap。虽然开多了也会偶尔卡一下,但是没有卡死的情况了
Reply
Like 0
View the author
baoding-fenshuajiang_Odoo
deepin
2017-07-28 04:39
#4
嗯,建议深度4G内存时默认开启SWAP。
Reply
Like 0
View the author
mrrong
deepin
2017-07-28 04:42
#5
没有遇到过,本人电脑N年前的DELL老台式机,依旧美丽。
Reply
Like 0
View the author
guoqiao
deepin
2017-07-28 18:20
#6
深度系统桌面本身会占据几个G的内存,而Chrome更是一个内存怪兽,每个标签页都会占用大量内存。
如果Chrome打开很多标签,内存就会不足,然后就死机。我最近也经常遇到这个问题。
我的电脑有8G内存,我安装系统时心存侥幸,没有分配swap分区。
作为补救措施,我创建了一个8G的交换文件,目前为止没有再死机过。
脚本内容如下:
#!/bin/bash
dd if=/dev/zero of=/swapfile bs=1024 count=8M
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
Copy the Code
注意需要用root权限执行,并且根据自己的情况调整内存大小。8G内存对应的count是8M, 这里M是1024 x 1024的简写,并非大小。其它依此类推。
此外,为了每次重启后都能自动加载,需要添加这一行到 /etc/fstab:
/swapfile none swap sw 0 0
Copy the Code
使用htop或free命令,可以查看swap是否工作。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[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
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More