Bug 863837 - TRIM requests are not passed down to the underlying md raid devices
Summary: TRIM requests are not passed down to the underlying md raid devices
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 17
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-07 19:36 UTC by Alex G.
Modified: 2013-10-01 16:17 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-08 12:53:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alex G. 2012-10-07 19:36:16 UTC
Description of problem:
TRIM requests are not passed down to the underlying MD raid devices. Even with modern SSDs, like the Vertex 4, we still see slowdowns in workstation usage after available sectors are filled up.

Version-Release number of selected component (if applicable):
NA

How reproducible:
Always.

Steps to Reproduce:
1. Create a mirrored md array
2. Create a partition and ext4 filesystem (let's call it /mnt/mirror) on the md array
3. fstrim /mnt/mirror
  
Actual results:
fstrim: /mnt/mirror: FITRIM ioctl failed: Operation not supported

Expected results:
No error.

Additional info:
As I understand, TRIM support for MDRAID is not yet merged in the kernel, but patches do exist.

Comment 1 Josh Boyer 2012-10-08 12:53:27 UTC
When the patches are merged upstream, we'll pick them up via an update.  Until then, this is really an upstream issue.

Comment 2 Daniel Cotton 2013-10-01 16:17:24 UTC
Now that the patches are merged upstream (https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/drivers/md/raid1.c?id=2ff8cc2c6d4e323de71a42affeb3041fa17d5b1), what's happening with this?


Note You need to log in before you can comment on or make changes to this bug.