Skip to content

Instantly share code, notes, and snippets.

@kramarama
Created March 21, 2014 20:12
Show Gist options
  • Save kramarama/9695329 to your computer and use it in GitHub Desktop.
Save kramarama/9695329 to your computer and use it in GitHub Desktop.
SSD setup linux
# what's up in there:
cat /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/iosched/fifo_batch
# FileSys MountPt Type Options Dump Pass
tmpfs /tmp tmpfs defaults,noatime,mode=1777,size=15% 0 0
tmpfs /var/tmp tmpfs defaults,size=5% 0 0
tmpfs /var/log tmpfs defaults,size=5% 0 0
# modes:
discard,noatime,nodiratime
# SSD should have:
/sys/block/sda/queue/rotational 0
#################################
sudo nano /etc/rc.local
# Above the “exit 0” line, add these two lines if you’re using deadline:
#!/bin/sh
hdparm -W1 /dev/sda
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch
# If you’re using noop, add this line:
echo noop > /sys/block/sda/queue/scheduler
#Then, hit CTRL+O to save, then CTRL+X to quit.
#################################
#profile-sync-daemon (psd)
# cat /etc/psd.conf
# List users separated by spaces whose browser(s) profile(s) will get symlinked
# and sync'ed to tmpfs
USERS="rama"
# List browsers separated by spaces to include in the sync. Useful if you do not
# wish to have all possible browser profiles sync'ed
# Otherwise all available/supported browsers will be managed
BROWSERS="google-chrome midori firefox"
# Define where browser profiles will reside in tmpfs
VOLATILE="/run/ramaweb"
# Define where the pid file for psd will reside
DAEMON_FILE="/var/run/psd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment