[Bug 243683] Need to add quirk for Micron 5300 series of ssd drives

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 28 21:58:13 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243683

            Bug ID: 243683
           Summary: Need to add quirk for Micron 5300 series of ssd drives
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: satan at Ukr.net

Created attachment 211142
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211142&action=edit
Adding quirk to disable UNMAP/TRIM for Micron 5300 SSD

Quirks for a Micron 5300 pro sata ssd drive.
When truing to use it in zfs pool find terrible performance caused by zfs
sending trim command to ssd. For example samsung PM863a worked in same pool
have x 10 better performance. After disable trim via quirks for micron get 
performance near or beatter then PM863a. So looks like Micron have troble with 
trim/unmap on that type of devices.

In attachment I place quick patch adding quirks to scsi_da.c and ata_da.c 

where simply adding quirk for 4k (looks like no needed ) and
DA_Q_NO_UNMAP/ADA_Q_NO_TRIM for that's device's.

quirks tested on 12.1-STABLE and 11.2-STABLE  
On 11.2  only for for scsi_da.c as quirk ADA_Q_NO_TRIM doesn't exist.

Its will be good if some body can confirm that fix is right and push changes to
upstream 

Patch again 12.1-STABLE FreeBSD 12.1-STABLE r357144

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list