5 ms·
Does Linux kernel have the code to manage these SMR drives as they need to be? (Seems like HGST purposefully left that to the OS to do - imho a smart choice)
by dmitrygr 9y ago
Does Linux kernel have the code to manage these SMR drives as they need to be? (Seems like HGST purposefully left that to the OS to do - imho a smart choice)
- koverstreet 9y agoIf someone was looking to jump into working on bcachefs, adding SMR support would be an excellent project.
- valarauca1 9y agoYes https://lwn.net/Articles/637035/ https://lwn.net/Articles/637035/
- loeg 9y agoNote that the conclusion of that article is that developers are thinking about it, not that it is solved in Linux. Linux may detect SMR drives and query them for zone information, but I don't believe ext4 or any other Linux filesystem works particularly well on them. I would love to be shown otherwise, though. > Reinecke wondered if the host-managed SMR drives would actually sell. Petersen piled on, noting that the flash-device makers had made lots of requests for extra code to support their devices, but that eventually all of those requests disappeared when those types of devices didn't sell. Reinecke's conclusion was that it may not make a lot sense to try to make an existing filesystem work for host-managed SMR drives. Edit: wmf points out that F2FS works reasonably well[0], until you have to do a garbage collection pass. [0]: http://events.linuxfoundation.org/sites/events/files/slides/lemoal-Linux-SMR-vault-2017.pdf http://events.linuxfoundation.org/sites/events/files/slides/...
- wmf 9y agoHere's the recent-ish status: http://events.linuxfoundation.org/sites/events/files/slides/lemoal-Linux-SMR-vault-2017.pdf http://events.linuxfoundation.org/sites/events/files/slides/... Looks like F2FS should work as of Linux 4.10.
- loeg 9y agoSee slide 21 — F2FS garbage collection after file/directory deletion is very expensive compared to classical filesystems on conventional disks.
- mjw1007 9y ago4.13 (released this September) added the dm-zoned device-mapper target, which presents an SMR drive as if it was a normal block device. I suppose what it does is similar to what drive-managed SMR drives do internally.