SSD optimizations: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
m New page: /boot, /home, /swap on raptor /dev/sda / on RevoDrive /dev/md0 (/dev/sdc, /dev/sdd) 1 put noatime option in /etc/fstab 2 disable the elevator scheduler echo noop > /sys/block/sdc/queue/...
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
See http://tombuntu.com/index.php/2008/09/04/four-tweaks-for-using-linux-with-solid-state-drives/
/boot, /home, /swap on raptor /dev/sda
/boot, /home, /swap on raptor /dev/sda
/ on RevoDrive /dev/md0 (/dev/sdc, /dev/sdd)
/ on RevoDrive /dev/md0 (/dev/sdc, /dev/sdd)
Line 4: Line 6:
1 put noatime option in /etc/fstab
1 put noatime option in /etc/fstab


2 disable the elevator scheduler
2 disable the elevator scheduler, put these in /etc/rc.local


echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/sdd/queue/scheduler
echo noop > /sys/block/sdd/queue/scheduler


3 manage write caching via /etc/hdparm.conf
3 manage write caching via /etc/hdparm.conf
Line 13: Line 15:
  # Raptor drive
  # Raptor drive
  /dev/sda {
  /dev/sda {
  write_cache = off
  write_cache = on
  }
  }
   
   
  # Caviar drive
  # Caviar drive
  /dev/sdb {
  /dev/sdb {
  write_cache = off
  write_cache = on
  }
  }
   
   
  # SSD RevoDrive
  # SSD RevoDrive
  /dev/sdc {
  /dev/sdc {
  write_cache = on
  write_cache = off
  }
  }
   
   
  /dev/sdd {
  /dev/sdd {
  write_cache = on
  write_cache = off
  }
  }

Revision as of 05:13, 13 November 2010

See http://tombuntu.com/index.php/2008/09/04/four-tweaks-for-using-linux-with-solid-state-drives/

/boot, /home, /swap on raptor /dev/sda / on RevoDrive /dev/md0 (/dev/sdc, /dev/sdd)

1 put noatime option in /etc/fstab

2 disable the elevator scheduler, put these in /etc/rc.local

echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/sdd/queue/scheduler

3 manage write caching via /etc/hdparm.conf

# Raptor drive
/dev/sda {
	write_cache = on
}

# Caviar drive
/dev/sdb {
	write_cache = on
}

# SSD RevoDrive
/dev/sdc {
	write_cache = off
}

/dev/sdd {
	write_cache = off
}