Created
September 13, 2012 23:51
-
-
Save lymanlai/3718702 to your computer and use it in GitHub Desktop.
ubuntu ssd setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://plumgo.cc/blog/2012/01/05/ssd-optimization-on-ubuntu-note/ | |
1. /etc/fstab | |
1). / 目录参数: discard,noatime,nodiratime,errors=remount-ro 0 1 | |
2). 其他 | |
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 | |
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0 | |
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0 | |
2.1 设置swappiness | |
echo 1 > /proc/sys/vm/swappiness | |
2.2 /etc/sysctl.conf | |
vm.swappiness=1 | |
3. /etc/rc.local | |
echo noop > /sys/block/sda/queue/scheduler | |
mkdir /tmp/chrome | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment