Skip to content

Instantly share code, notes, and snippets.

@lymanlai
Created September 13, 2012 23:51
Show Gist options
  • Save lymanlai/3718702 to your computer and use it in GitHub Desktop.
Save lymanlai/3718702 to your computer and use it in GitHub Desktop.
ubuntu ssd setup
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