Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] planning a new machine : comments welcome
Date: Thu, 03 Mar 2022 20:17:15
Message-Id: 1fa837aa-a12d-8dd8-21cb-9dec9d0cccb5@gmail.com
In Reply to: RE: [gentoo-user] planning a new machine : comments welcome by Laurence Perkins
1 Laurence Perkins wrote:
2 >>
3 >> -----Original Message-----
4 >> From: Dale <rdalek1967@×××××.com>
5 >> Sent: Wednesday, March 2, 2022 5:08 PM
6 >> To: gentoo-user@l.g.o
7 >> Subject: Re: [gentoo-user] planning a new machine : comments welcome
8 >>
9 >> Laurence Perkins wrote:
10 >>> With regard to SMR drives, note that there are three basic types:
11 >>>
12 >>> Some completely hide the fact that they are SMR. These suck, hands down. Performance is unpredictable and random.
13 >>> Some at least advertise that they're SMR, and expose basic counters about where they are in their maintenance cycles. These still suck, but at least you can kind of predict when they're about to get really slow.
14 >>>
15 >>> The best ones actually advertise what the shingled ranges are, at which point a new enough kernel and filesystem can keep the writes to those ranges as sequential as possible, and you can use the big, cheap drives with very little performance loss.
16 >>>
17 >>> There are a couple articles explaining how to determine what you've got and optimize it. I don't have my bookmarks to hand, but it was in a discussion on this list a few months ago.
18 >>>
19 >>> LMP
20 >>>
21 >> That's some new info. I tend to follow threads, even started one ages ago about my hard drive doing a bumpy thing for a long time after I updated my backups. Rich plus others informed me I unknowingly bought a SMR drive. I think mine has about a 15 or 20GB CMR section. I've noticed if my updates go to about that much or more, it gets slow. Either way, it does the bumpy thing for a good while after my backups are done and I've unmounted the drive. I just let it sit there until it gets done. If I don't, it just slows down faster the next time because it starts out behind on moving the files from CMR to SMR and doing its rewrite thing.
22 >>
23 >> My biggest point for the OP, look at its use and pick what works as expected. I've read, and Wol seems to confirm this, that RAID and SMR do not go together well. I've read some have hosed RAID thingys when they put in a SMR drive and didn't know it.
24 >>
25 >> The biggest problem I have is when they don't let us know when a drive is SMR. I don't like a company that sells me something that isn't as good without telling me. It sort of rubs me the wrong way.
26 >>
27 >> To the OP tho, research first, then buy. Know what you getting and that it will work for your needs. As I said, for the most part, my backup drive being SMR is mostly a little annoying. It does work. I just won't do it again tho.
28 >>
29 >> Dale
30 >>
31 >> :-) :-)
32 >>
33 >>
34 > Yeah, A lot of RAID controllers will see the bumpy performance and error out. Some vendors are starting to update their firmware though.
35 > You're not alone in being upset about manufacturers trying to sneak SMR in without telling anyone. The CCTV industry kind of took them to the woodshed over it.
36 > BTRFS got patches for detecting and optimizing zoned drives in 2020.
37 > EXT4 has a format-time option for it at this point.
38 > F2FS and NILFS2 are both designed to write a disk end-to-end sequentially for wear-levelling purpose and while they're not the fastest, they also don't see significant performance degradation from SMR except during schedulable maintenance operations.
39 > https://zonedstorage.io/ has a good list of reference material for figuring out what you've got and getting it configured in the best way.
40 >
41 > LMP
42
43
44 This is what I like about this list.  Sharing info.  It's good to know
45 that the software is catching up.  It would have been nice if WD,
46 Seagate etc had let the software people in on this info before they
47 started releasing the products.  It appears they didn't to me. 
48 Releasing it in stealth mode didn't help them any in my opinion.  They
49 angered a lot of people it would seem.  If they had alerted the people
50 who develop the software for file systems and RAID, it could have saved
51 a LOT of grief and possibly lose of data. 
52
53 This should also help the OP in the event he buys a SMR to save a little
54 where it will work.  It should help others who unknowingly bought a SMR
55 drive as well.  I need to look into enabling those options in my kernel
56 and with the file system tools.  It may help with my external drive as
57 well.  Maybe reduce the bumpy thing a bit.  lol
58
59 Thanks for the link. 
60
61 Dale
62
63 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] planning a new machine : comments welcome Julien Roy <julien@××××.ca>