SSD optimizations: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 32: Line 32:
  }
  }


Test results
Test results, wow, the new Black drive is faster than the Velociraptor.
 
The SSD is FAST and the Green is slow. No surprises there. Tested with hdparm -t command.
root@raven:/etc# hdparm -t /dev/md0


# RevoDrive
  /dev/md0:
  /dev/md0:
  Timing buffered disk reads:  1028 MB in  3.01 seconds = 341.87 MB/sec
  Timing buffered disk reads:  1028 MB in  3.01 seconds = 341.87 MB/sec
  root@raven:/etc# hdparm -t /dev/sda
  root@raven:/etc# hdparm -t /dev/sda
   
   
# Velociraptor
  /dev/sda:
  /dev/sda:
  Timing buffered disk reads:  358 MB in  3.01 seconds = 118.84 MB/sec
  Timing buffered disk reads:  358 MB in  3.01 seconds = 118.84 MB/sec
  root@raven:/etc# hdparm -t /dev/sdb
  root@raven:/etc# hdparm -t /dev/sdb
   
   
# Caviar Green
  /dev/sdb:
  /dev/sdb:
  Timing buffered disk reads:  198 MB in  3.00 seconds =  65.97 MB/sec
  Timing buffered disk reads:  198 MB in  3.00 seconds =  65.97 MB/sec
# Caviar Black
/dev/sda:
Timing buffered disk reads:  442 MB in  3.01 seconds = 146.99 MB/sec

Revision as of 06:07, 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
}

Test results, wow, the new Black drive is faster than the Velociraptor. The SSD is FAST and the Green is slow. No surprises there. Tested with hdparm -t command.

# RevoDrive
/dev/md0:
Timing buffered disk reads:  1028 MB in  3.01 seconds = 341.87 MB/sec
root@raven:/etc# hdparm -t /dev/sda

# Velociraptor
/dev/sda:
Timing buffered disk reads:  358 MB in  3.01 seconds = 118.84 MB/sec
root@raven:/etc# hdparm -t /dev/sdb

# Caviar Green
/dev/sdb:
Timing buffered disk reads:  198 MB in  3.00 seconds =  65.97 MB/sec
# Caviar Black
/dev/sda:
Timing buffered disk reads:  442 MB in  3.01 seconds = 146.99 MB/sec