On Sun, 17 Jul 2011, Lutz Vieweg wrote:
David Brown wrote:
However, AFAIUI, you are wrong about TRIM being essential for the continued
high performance of SSDs. As long as your SSDs have some over-provisioning
(or you only partition something like 90% of the drive), and it's got good
garbage collection, then TRIM will have minimal effect.
I beg to differ.
Of course, you can only benefit from discards if your filesystem
is not full (because then there is nothing to discard). But any
kind of "garbage collection" by the SSD itself will not have the
same effect, since it cannot know which blocks are in use by the
filesystem.
Well, that's what you gain from only using 90% of the drive space for data
(be it via partition or some other means), you increase the
overprovisioning and thus the drive has more empty space to play with,
even if you fill up the FS to 100%.
So yes, TRIM is nice but if you want consistant performance then you need
to assume that your FS is going to be 100% full anyway, so then you have
to limit the FS block use to 80-90% of the total drive space.
--
Mikael Abrahamsson email: swmike@xxxxxxxxx
--
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