Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
SSD需要自己做些優化嗎
Experiences and Insight
1255
views ·
3
replies ·
To
floor
Go
187******12
deepin
2016-08-15 17:37
Author
網上說linux對ssd需要自己修改一下配置進行優化,在deepin裏需要自己改嗎
Reply
Like 0
Favorite
View the author
All Replies
liujindong
deepin
2016-08-15 17:53
#1
需要
Reply
Like 0
View the author
justiblade
deepin
2016-08-15 18:09
#2
使用Ext4文件系统,如果内存够大,把频繁读写的挂载点挂载为内存盘,可以减少SSD磨损,具体做法是在/etc/fstab中写入以下类似字段:
tmpfs /tmp tmpfs noatime,mode=1777 0 0
Copy the Code
大概看起来就像这样:
至于还有哪些挂载点可以挂载为内存盘,就需要查询下资料了。
Reply
Like 0
View the author
MattD
deepin
2016-08-15 19:34
#3
要的,最近我刚入手两块500G的SSD,也查询了一些相关的资料,得出以下结论:
1、rootfs,包括其他需要存放在SSD上的挂载点,最好使用btrfs,F2FS这些对SSD具备原生优化的文件系统。
2、挂载选项中加入noatime,discard,对于ext4,可以再加个relatime,从而减少写入量。dump和pass可以都设为0。
3、如果未设置discard选项,则需要定期手动执行fstrim。
4、/tmp和/var/tmp可考虑挂载为tmpfs,减少写入SSD写入量。
5、I/O Scheduler需要更改为noop,可通过附加“elevator=noop”内核参数来实现。
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
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More