Thread (5 messages) 5 messages, 4 authors, 2015-07-07

Re: [PATCH 0/1] RFC: Unreliable discard performance can cripple RAID1

From: Mike Snitzer <hidden>
Date: 2015-07-07 04:42:48

On Tue, Jun 23, 2015 at 8:26 PM,  [off-list ref] wrote:
From: Jes Sorensen <redacted>

Neil,

I have been hitting issues with discard being ridiculously slow on
arrays with certain typs of SSDs that seem to serialize discard
processing.

This is particularly bad as I have seen systems where the IMSM BIOS
defaults to 4KB chunk size, combined with these badly performing
drives, it could bump the mkfs on an array from seconds to over 40
minutes. Most users will stick to the defaults and then hit the
problem during install without understanding why it goes wrong :(

The problem is that there is no way to benchmark our way to this or
somehow test if a drive performs discard at reasonable speed. I
suggest we take an approach similar to that of RAID456 and default to
disabling discard, except for the case where the user knows the drives
are safe.

Thoughts?

Cheers,
Jes


Jes Sorensen (1):
  raid0: Disable discard per default due to performance uncertainty

 drivers/md/raid0.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
As we've discussed in private (but for the benefit of others):

MD raid0 should do what dm-stripe does.  Which is calculate the full
extent to discard for each member in the raid0.
This avoids issuing lots of small discards and hoping the block layer
merges them back up.

See this DM commit for reference:
http://git.kernel.org/linus/7b76ec11fec40203836b488496d2df082d5b2022
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help