Extend MD (RAID) personality to create SSD+HDD hybrid block device for better performance.

Comparing SSDs and HDDs,

  • SSDs' cost-per-capacity is still 20x inferior to HDDs (~$500 for 256GB SSD, ~$100 for 1TB HDD as of 2009/1)
  • SSDs have 100x faster random access speed (~100us in contrast to ~10ms of HDDs)
  • Sequential read performance is almost equivalent.
  • HDDs are generally better in write performance.
Although SSDs are improving, those improved ones tend to be even more costly compared to HDDs. Wouldn't it be great to have software-based HDD+SSD hybrid out of low-end HDD and SDD? Linux already uses RAM for caching, but adding SSD as 2nd-level cache might worth considering, especially for "read-mostly" usecases like multimedia content streaming.