On 19/07/2011 16:19, Tom De Mulder wrote:
In case people are interested, I ran more benchmarks. The impact of TRIM on an over-provisioned drive is remarkable: a 25% performance loss when using Postmark. Because this isn't really on-topic for the MD mailing list, I've put it somewhere else:
It is a little off-topic, perhaps, but still of interest to many RAID users precisely because of the myths and inaccurate data surrounding TRIM. There are too many people that think TRIM is essential to SSD's, RAID doesn't support TRIM, therefore you shouldn't use RAID and SSD's together.
http://tdm27.wordpress.com/2011/07/19/some-solid-state-drive-benchmarks/
To try to explain your results - first it's easy to see why md raid1 with discard is a little slower than md raid1 without discard - the raid layer ignores the discards, so they can't help or hinder much, and the filesystem is doing a bit of extra work (sending the discards) to no purpose.
It is also easy to see why a single SSD with no discards is about the same speed. You are using RAID1 - reads and writes are not striped in any way, so the speed is the same as for a single disk. If the test accessed multiple files in parallel (especially reads), you'd see faster reads.
The telling figure here, though, is that TRIM made the single drive significantly slower.
My next goal, when I have the time, is to compare different amounts of over-provisioning.
Also try using RAID10,far for your arrays. That will work the SSD's harder, and perhaps give a better comparison.
-- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html