Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] SMR drives (WAS: cryptsetup close and device in use when it is not)
Date: Fri, 30 Jul 2021 14:30:15
Message-Id: CAGfcS_=8sjEe60KEuVsoqEyj5TbK177H0vf2fY3yQp370h+VFw@mail.gmail.com
In Reply to: Re: [gentoo-user] [OT] SMR drives (WAS: cryptsetup close and device in use when it is not) by William Kenworthy
1 On Fri, Jul 30, 2021 at 1:14 AM William Kenworthy <billk@×××××××××.au> wrote:
2 >
3 > 2. btrfs scrub (a couple of days)
4 >
5
6 Was this a read-only scrub, or did this involve repair (such as after
7 losing a disk/etc)?
8
9 My understanding of SMR is that it is supposed to perform identically
10 to CMR for reads. If you've just recently done a bunch of writes I
11 could see there being some slowdown due to garbage collection (the
12 drive has a CMR cache which gets written out to the SMR regions), but
13 other than that I'd think that reads would perform normally.
14
15 Now, writes are a whole different matter and SMR is going to perform
16 terribly unless it is a host-managed drive (which the consumer drives
17 aren't), and the filesystem is SMR-aware. I'm not aware of anything
18 FOSS but in theory a log-based filesystem should do just fine on
19 host-managed SMR, or at least as well as it would do on CMR (log-based
20 filesystems tend to get fragmented, which is a problem on non-SSDs
21 unless the application isn't prone to fragmentation in the first
22 place, such as for logs).
23
24 Honestly I feel like the whole SMR thing is a missed opportunity,
25 mainly because manufacturers decided to use it as a way to save a few
26 bucks instead of as a new technology that can be embraced as long as
27 you understand its benefits and limitations. One thing I don't get is
28 why it is showing up on all sorts of smaller drives. I'd think the
29 main application would be for large drives - maybe a drive that is
30 14TB as CMR could have been formatted as 20TB as SMR for the same
31 price, and somebody could make that trade-off if it was worth it for
32 the application. Using it on smaller drives where are more likely to
33 be general-purpose is just going to cause issues for consumers who
34 have no idea what they're getting into, particularly since the changes
35 were sneaked into the product line. Somebody really needs to lose
36 their job over this...
37
38 --
39 Rich

Replies