On Mon, 26 Feb 2024, Andy Smith wrote:
Hi,
On Mon, Feb 26, 2024 at 06:25:53PM +0000, Tim Woodall wrote:
Feb 17 17:01:49 xen17 vmunix: [ 3.802581] ata1.00: disabling queued TRIM
support
Feb 17 17:01:49 xen17 vmunix: [ 3.805074] ata1.00: disabling queued TRIM
support
from libata-core.c
{ "Samsung SSD 870*", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM |
ATA_HORKAGE_NO_NCQ_ON_ATI },
This fixed the disk corruption errors at the cost of dramatically
reducing performance. (I'm not sure why because manual fstrim didn't
improve things)
That's interesting. I have quite a few of these drives and haven't
noticed any problems. What kernel version introduced the above
workarounds?
$ sudo lsblk -do NAME,MODEL
NAME MODEL
sda SAMSUNG_MZ7KM1T9HAJM-00005
sdb SAMSUNG_MZ7KM1T9HAJM-00005
sdc Samsung_SSD_870_EVO_4TB
sdd Samsung_SSD_870_EVO_4TB
sde ST4000LM016-1N2170
sdf ST4000LM016-1N2170
sdg SuperMicro_SSD
sdh SuperMicro_SSD
Thanks,
Andy
Looks like the fix was brand new around sept 2021
https://www.neowin.net/news/linux-patch-disables-trim-and-ncq-on-samsung-860870-ssds-in-intel-and-amd-systems/
I was still seeing corruption in August 2022 but it's possible the fix
wasn't backported to whatever release I was running.
Tim.