* [dm-devel] Feature Request: Device Manager Fake Trim / Zero Trim
@ 2023-10-09 0:35 charlesfdotz
0 siblings, 0 replies; only message in thread
From: charlesfdotz @ 2023-10-09 0:35 UTC (permalink / raw)
To: Dm Devel
Hello,
I would like to request a new device manager layer be added that accepts trim requests for sectors and instead writes zeros to those sectors.
This would be useful to deal with SMR (shingled magnetic recording) drives that do not support trim. Currently after an SMR drive has had enough data written to it the performance drops dramatically because the disk must shuffle around data as if it were full and without trim support there is no way to inform the disk which sectors are no longer used. Currently there's no way to "fix" or reset this without doing an ATA secure erase despite many of these disk being sold without informing customers that they were SMR drives (western digital was sued for selling SMR drives as NAS drives).
However it seems that some of these drives are smart enough to mark sectors as unused if a sector is filled with zeros (https://old.reddit.com/r/DataHoarder/comments/g7lqaz/). So I think a device mapper that could emulate trim on these devices by simply accepting trim requests then filling those sectors with zeros. It would make a whole class of hard drives significantly more usable.
Sincerely,
Chuck
P.S. I was directed here after mailing the cryptsetup mailing list so I hope this is the right place to ask about this. Thank you.
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-09 6:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 0:35 [dm-devel] Feature Request: Device Manager Fake Trim / Zero Trim charlesfdotz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.