[Bug 238663] [UFS] Corrupted files since migration to FreeBSD11

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 14 17:49:26 UTC 2019


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

--- Comment #10 from Kirk McKusick <mckusick at FreeBSD.org> ---
(In reply to Masse Nicolas from comment #9)
I was going to suggest that you try disabling TRIM on your disk to see if that
helped solve the problem. Some folks that I am working with at Netflix have
found some rather severe bugs in TRIM support on some of the flash drives that
they have been using.

I have bought an array of cheap flash drives on Amazon and tried them out using
your suggested tests. I have not been able to precisely reproduce your
problems, but I have gotten problems that are caused by what appears to be
faulty TRIM implementations (i.e., the problem goes away when I disable TRIM).

Is the drive on which you are experiencing the problem a flash drive, and if so
does the problem go away when you disable TRIM? If so, then I would chalk up
the problem to faulty TRIM microcode.

I added TRIM consolidation in -r338517 which helps reduce the number of TRIM
commands sent to the drive by aggregating them into bigger pieces. But the
bigger pieces can hit other TRIM bugs that do not deal well with big TRIM
requests. So you can try disabling vfs.ffs.dotrimcons to see if that makes a
difference.

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


More information about the freebsd-fs mailing list