Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439718 - sys-kernel/git-sources 3.7_rc2 MD RAID TRIM does not work as advertised
Summary: sys-kernel/git-sources 3.7_rc2 MD RAID TRIM does not work as advertised
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 07:27 UTC by Marek Bartosiewicz
Modified: 2013-02-06 18:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Bartosiewicz 2012-10-26 07:27:06 UTC
I have Dell Studio 17 (model 1747) laptop with two SSDs (Sandisk Extreme 120GB) that are RAIDed in kernel via MD subsystem. Nothing fancy: RAID 1 for /boot, RAID 0 for / and /home (root and home formatted with ext4). No LVM, no dm-crypt, etc.

Until recenlty I wasn't even aware, that mdraid did not support TRIM :)

Anyway, after switching to 3.7 RC2 kernel log is filled with these messages when deleting large files:

[ 9391.352621] request botched: dev sda: type=1, flags=122d8081
[ 9391.352624]   sector 169748741, nr/cnr 0/128
[ 9391.352626]   bio ffff880235279840, biotail ffff880231e74600, buffer           (null), len 0
[ 9391.352664] request botched: dev sdb: type=1, flags=122d8081
[ 9391.352666]   sector 169748741, nr/cnr 0/128
[ 9391.352668]   bio ffff880235279600, biotail ffff880231e74300, buffer           (null), len 0
[ 9391.362619] request botched: dev sda: type=1, flags=122d8081
[ 9391.362621]   sector 169748742, nr/cnr 0/128
[ 9391.362622]   bio ffff880231e74f00, biotail ffff880231e74600, buffer           (null), len 0
[ 9391.362648] request botched: dev sdb: type=1, flags=122d8081
[ 9391.362650]   sector 169748742, nr/cnr 0/128
[ 9391.362651]   bio ffff880231e74e40, biotail ffff880231e74300, buffer           (null), len 0
[ 9391.372617] request botched: dev sda: type=1, flags=122d8081
[ 9391.372621]   sector 169748743, nr/cnr 0/128
[ 9391.372623]   bio ffff880231e74600, biotail ffff880231e74600, buffer           (null), len 0
[ 9391.372642] request botched: dev sdb: type=1, flags=122d8081
[ 9391.372644]   sector 169748743, nr/cnr 0/16
[ 9391.372647]   bio ffff880231e74300, biotail ffff880231e74300, buffer           (null), len 0


Deleting is very slow, for large files my system hangs for minutes. Had to disable the discard flag.
From my short search on "the internet" thing, this problem was already reported in March, and seemingly resolved? Or not?
Comment 1 Marek Bartosiewicz 2012-10-26 07:28:14 UTC
And yes, TRIM works for any of those Sandisk drives (tested).
Comment 2 Marek Bartosiewicz 2012-11-15 07:29:00 UTC
Still no go even with 3.7-rc5.
Found this, but I'm sure you are aware of that thread :)
http://comments.gmane.org/gmane.linux.raid/40667
Comment 3 Marek Bartosiewicz 2012-11-15 07:44:24 UTC
Yeah!
I confirm that applying patches 6 to 8 to 3.7-rc5 solve the problem:
http://www.spinics.net/lists/linux-scsi/msg61877.html
http://www.spinics.net/lists/linux-scsi/msg61879.html
http://www.spinics.net/lists/linux-scsi/msg61882.html
Comment 4 Marek Bartosiewicz 2012-11-28 04:52:55 UTC
Seems that git-sources 3.7_rc7 has those patches included.