113 points · by zdw · 9y ago · 47 comments
http://www.rkeene.org/viewer/tmp/linux-2.6.35.4-2rrrr.diff.h...
Thus balancing reads is good for SSD endurance.
You'd need some kind of cache below the md driver to cache "metadata relevant to the SSD innards". Since there isn't one therefore there can't be a penalty due to caching to switch between SSDs in a mirror. That answers your question.
But since you want an insight, here's one for you. There is no "metadata relevant to the SSD innards" available. The md drivers do not have this information. I wish they did. When I was still playing with the md code I'd love to know the block and page sizes of the drives. But that information is two bytes. Not really something that would need a cache.
Not that it is really critical, read-disturb exists but it is on a far lower scale compared to erase endurance.
Agree and this would seem to make sense.
It is like having two rolls of paper towels in the kitchen. If you use both of them you are only extending the time till empty. If you use one of them only you can then replace that when it runs out running on the 2nd in the time it takes to replace.
When I last looked at this, devices could suffer (say) 3K writes, and once written a cell would have to be re-written after 3K reads in order to maintain proper voltage levels.
It's much, much harder to keep track of logical block location, especially if you need to handle surprise removal of power.
Then again, not sure if author was really thinking about these sorts of things, who knows.
I added round-robin code and experimented with splitting large sequental requests between idle disks.