Just check the target to make sure new snapshots are showing up on schedule. You can do this with sanoid --monitor-snapshots on the target (either run directly, or as a Nagios plugin). Don't forget that the Sanoid module for the target needs to be using the backup or hotspare templates, NOT the production template, since it should not be taking snapshots locally!
You don't usually want to move Program Files, since it needs some of the same hooks you're attempting to avoid.
But putting bulk data on a D: is better than putting it on your C: drive, if it's on a system where the additional complexity is tolerable. (I wouldn't bother on a simple laptop.)
The game hadn't been out for 15 hours at the time of the review, even for review copies.
Nope. Larian gave us a key the week prior. I downloaded it Friday afternoon, played Saturday and Sunday, then on Monday I wrote up the review while going back and forth to the game to get screenshots and test alternate strats on the encounter I wrote the most about.
To the best of my understanding, TRIM doesn't tell the drive what to do about organizing data at all. It just notifies the drive which sectors are no longer needed.
It's up to the firmware to decide what to do with that information; some drives might just say "oh ok" but wait to do anything until that space was absolutely needed; others with more active and aggressive garbage collection might decide to proactively compress the remaining data from zones that now have "holes" into a smaller number of fully occupied zones.
It should be doing the exact same thing TRIM does on SSDs, which are also zoned devices: it's marking any areas the filesystem says it doesn't need anymore as garbage, so that there's no need to read-modify-write when new data needs to go in that zone; the system can just write over the old zone's contents without worrying about it.
So, when I mkfs.ext4 the disk, it just tells the controller "literally every sector in this partition is bullshit and you don't have to worry about it." With TRIM enabled in a standard, mounted ext4 filesystem, say you delete a 4GiB video file, the filesystem sends a TRIM command for the sectors that file occupied, and now the disk's controller knows that there's no useful data in the 16 256MiB zones that file occupied, so now when the user wants to save a 4KiB file in that zone, the drive can just wipe the zone and write 4KiB to its head, rather than having to read in the 256MiB zone, modify 4KiB of it, then write the whole 256MiB back again.
If I was to give one of these drives to my parents, or literally anyone in my entire (large) extended family, they wouldn't notice this drive is slower than any other hard drive.
I think these would be fine as a second disk in a for-normal-people Windows system with a C: on SSD. I still see a lot of OEM low-end PCs with nothing but a single rust disk, though, and I do not think these would be good for a Windows C:, with all of the Appdata, temp files, SBS logging, and all the other bullshit going on. Especially not on Patch Tuesdays!
Even high-end CMR rust disks (hell, even some SSDs) tend to get godawful after a bad patch Tuesday; I hate to think of the pathology you might encounter if you triggered an SMR pathology in the middle of all that.
I am actually impressed with the WD Red SMR drives in the context of "performance I expect from a SMR drive"
Same here. It was pretty neat watching the firmware adapt to workloads it had problems with; the "second test" on both the mdraid rebuild and the fio run (in which zones had to be rewritten) both started out with pretty abysmal speeds, but it sped up the longer the test went on, and eventually finished with the same performance (mediocre compared to CMR, but totally livable) as the "fresh" run had.
I'd be cheering what a great job they did with this, if they'd marketed it honestly instead of trying to sneak it into the channel.
From a console, on a linux system I'd recommend watch -n 1 zpool iostat -vy 1 1. On a FreeBSD derived system like FreeNAS it's a bit more annoying, since watch there isn't the same utility it is on Linux; I think you need a gnu-watch package there?
If you want to keep the data, you probably don't want to do watch anyway; better to zpool iostat -vy 1 | tee /var/log/iostat.log and just let it scroll by, and you can retrieve the data for analysis from the logfile you're creating later as well.
Note: there are a lot more options available for zpool iostat, and checking the manpage might be a good idea if you're really keen on deriving data from it. In particular, there's a -H option to make the output more parsable, and a -w option to provide you with histographic data (probably mostly useful if you just want to run a single iostat to get data for all time since last boot).
WD has been completely silent as far as I know, and (my opinion) appear to be taking the "ignore it for long enough and hopefully it goes away" strategy.
I tried to coax them into talking about it while I was doing these tests. They didn't respond until after the article went live, but then said they appreciated the heads up. No material answers yet on the questions I had for them; the rep who responded said "I'll see what I can do" but so far that's it.
Hopefully that'll turn into something material, but you know what they say about wishing in one hand and crapping in the other...
Obviously I do the majority of my testing under Linux unless I absolutely need to do Windows for some reason; I noticed that mkfs.ext4 automatically initiates a TRIM on the disk before formatting it, if it's not already virginal.
That made me wonder whether mdadm does the same thing when you create a new array. If it does, it doesn't tell you about it the way mkfs.ext4 does.
there's only so much watching a rebuild counter tick up 0.01% at a time that I can stomach
Omg I know, right? Meanwhile my mentions are blowing up with people like "you need to do this test lots of times or it's not scientific." Not a one of them offering to sponsor all that redundant retesting, either 😂
If I understand correctly, there's a sequential throughput disadvantage because I'm in the inner third, but a corresponding seek latency advantage because I'm only on a third of the platter so the heads don't need to move as far when seeking.
Both effects are relatively small, and even more so since this isn't an extreme short stroke. Back in the bad old days before SSDs, really high load databases sometimes would get run on RAID10 on DRASTICALLY short stroked drives to get that seek latency advantage (think 10G partitions on 200G drives). I remember arguments about whether you'd lose some of the seek latency advantage by using the outer tracks (for the sequential throughput advantage due to higher linear speed) or not, but the difference was really pretty small either way and I don't remember ever feeling like anybody had conclusively demonstrated whether short stroking at the outer tracks vs the inner tracks was better.
I also remember short stroking from even older days, when drive controllers weren't fast enough to read each sector as it passed under the head, so you might need three or four rotations to read a single track at the outer tracks. Back then, you sometimes short stroked on the INNER tracks to get a throughput advantage, since the controller might be able to read a whole track in one it two rotations instead of three or four at the inner tracks.
I'm sure WD wouldn't want to volunteer drives to prove their product bad, lol.
I haven't had any luck getting ANY manufacturer to volunteer SMR disks for testing. Even before the "stealth SMR" thing had blown up, nobody would supply a review sample of one of their openly advertised big SMR disks--I wanted to see if I could get anywhere with Linux host-managed SMR, but everybody said "no review samples because we're not in the office because COVID-19."
Perhaps that's just the literal truth... But I'm still receiving review samples of things that AREN'T SMR drives to the tune of two or three a week. So it seems odd that disk manufacturers are the only vendors who've shut down their reviewer outreach shipping. /cynical
Thank you! Your article was great, btw. I had seen a ton of user reports of massive problems with SMR disks in vdevs, but yours was the first detailed test I found, and I appreciated the depth you went into with it.
Because I had a set of eight Ironwolf 12T on hand, and could get approval to purchase a single 4T EFAX red, but buying a full set of eight EFRX red to use for the baseline would have been out of the question.
If the 12T red was SMR, I'd have used that instead. But it isn't, so I did what I could with what I had to work with.
How fucked do things get when you have a bad drive or SATA cable that doesn't completely fail but kinda intermittently doesn't work?
Completely un-fucked, so long as the number of disks you're flaking out on is smaller than the number of parity or redundancy blocks you have per data block in that vdev. Probably un-fucked, if it's equal to the number of parity or redundancy blocks you have in the vdev. Danger Will Robinson! if it's larger than the number of parity or redundancy blocks you have per data block in that vdev.
So, let's say you've got a RAIDz2 vdev, and one drive has a flaky SATA cable and keeps dropping out. Since you've got a RAIDz2 and that's only one disk, after this happens a few times, ZFS is going to say "fuck you" and fail that drive out of the vdev.
Now let's say that was a mirror, or a RAIDz1. ZFS isn't going to kick it out, but it will mark it "degraded" due to too many failures. ZFS doesn't kick it out because, even though your vdev would still function without it, it would be "uncovered"—meaning any further failure would bring the vdev, and thus the entire pool down with it—so ZFS tolerates that flaky motherfucker. Grudgingly.
Alright, so we have a flaky ass drive that keeps dropping off and reappearing, and ZFS won't fault it out entirely because it's the last parity/redundancy member. So how does it handle it? Well, when the disk drops out, ZFS just operates the vdev degraded—if it's a mirror, it only writes one disk; if it's a RAIDz, it does degraded reads and writes ignoring that disk, and reconstructing its blocks from parity when necessary.
When the disk "flakes back online", ZFS sees that it came online, so it begins resilvering it—but ZFS sees that it's the same disk that was there before it flaked out, so it doesn't do a stem-to-stern rebuild. ZFS knows when it dropped offline, so it only has to resilver new, changed data that happened while the drive was offline.
In a nutshell, SMR performance is beyond horrible on random access workloads, and torrenting is as random access as it gets.
Once you push through the non-SMR-encoded cache at the head of the disk, sustained random writes on an SMR disk are typically in the kilobytes per second.
If you're using zfs, you can mitigate this by setting recordsize=1M on the torrent receiving dataset. But it's a bad situation no matter what.
I know it's not ideal, but SMR for desktop drives really doesn't seem like it'd be too much of an issue.
It's a horrendous issue if you've got Windows booting off of it, and running all your applications off of it.
Which is how I see the majority of desktop drives used, unfortunately. If it was only used as a secondary bulk storage drive for media in a desktop PC, then sure, SMR would be... tolerable, anyway. (Although holy lol, don't try to target torrents directly to a folder on an SMR disk...)
Any IT guy worth his salt is going to make sure the controller is emailing them on failure
Any IT person worth their salt knows email is entirely too unreliable for automated monitoring reports, particularly when reporting on something as mission-critical as storage health.
4-wide Z2 gets you decent IOPS and dual redundancy, but the storage efficiency is just as bad as mirrors.
6-wide Z3 is imbalanced and won't perform as well as it should with incompressible data, hence 6-wide Z2.
Many narrow vdevs is almost always a better idea than fewer, wider vdevs.
And yes, in larger systems, groups of six-wide Z2 are a very common and highly recommended setup.
Just check the target to make sure new snapshots are showing up on schedule. You can do this with sanoid --monitor-snapshots on the target (either run directly, or as a Nagios plugin). Don't forget that the Sanoid module for the target needs to be using the backup or hotspare templates, NOT the production template, since it should not be taking snapshots locally!
this word is doing a lot of heavy lifting. :)
You don't usually want to move Program Files, since it needs some of the same hooks you're attempting to avoid.
But putting bulk data on a D: is better than putting it on your C: drive, if it's on a system where the additional complexity is tolerable. (I wouldn't bother on a simple laptop.)
Nope. Larian gave us a key the week prior. I downloaded it Friday afternoon, played Saturday and Sunday, then on Monday I wrote up the review while going back and forth to the game to get screenshots and test alternate strats on the encounter I wrote the most about.
To the best of my understanding, TRIM doesn't tell the drive what to do about organizing data at all. It just notifies the drive which sectors are no longer needed.
It's up to the firmware to decide what to do with that information; some drives might just say "oh ok" but wait to do anything until that space was absolutely needed; others with more active and aggressive garbage collection might decide to proactively compress the remaining data from zones that now have "holes" into a smaller number of fully occupied zones.
No, I didn't. I avoided the hell out of them, because they were clearly marked for what they were and I clearly didn't want them! =)
It should be doing the exact same thing TRIM does on SSDs, which are also zoned devices: it's marking any areas the filesystem says it doesn't need anymore as garbage, so that there's no need to read-modify-write when new data needs to go in that zone; the system can just write over the old zone's contents without worrying about it.
So, when I
mkfs.ext4the disk, it just tells the controller "literally every sector in this partition is bullshit and you don't have to worry about it." With TRIM enabled in a standard, mountedext4filesystem, say you delete a 4GiB video file, the filesystem sends a TRIM command for the sectors that file occupied, and now the disk's controller knows that there's no useful data in the 16 256MiB zones that file occupied, so now when the user wants to save a 4KiB file in that zone, the drive can just wipe the zone and write 4KiB to its head, rather than having to read in the 256MiB zone, modify 4KiB of it, then write the whole 256MiB back again.I think these would be fine as a second disk in a for-normal-people Windows system with a C: on SSD. I still see a lot of OEM low-end PCs with nothing but a single rust disk, though, and I do not think these would be good for a Windows C:, with all of the Appdata, temp files, SBS logging, and all the other bullshit going on. Especially not on Patch Tuesdays!
Even high-end CMR rust disks (hell, even some SSDs) tend to get godawful after a bad patch Tuesday; I hate to think of the pathology you might encounter if you triggered an SMR pathology in the middle of all that.
Same here. It was pretty neat watching the firmware adapt to workloads it had problems with; the "second test" on both the mdraid rebuild and the
fiorun (in which zones had to be rewritten) both started out with pretty abysmal speeds, but it sped up the longer the test went on, and eventually finished with the same performance (mediocre compared to CMR, but totally livable) as the "fresh" run had.I'd be cheering what a great job they did with this, if they'd marketed it honestly instead of trying to sneak it into the channel.
From a console, on a linux system I'd recommend
watch -n 1 zpool iostat -vy 1 1. On a FreeBSD derived system like FreeNAS it's a bit more annoying, sincewatchthere isn't the same utility it is on Linux; I think you need agnu-watchpackage there?If you want to keep the data, you probably don't want to do
watchanyway; better tozpool iostat -vy 1 | tee /var/log/iostat.logand just let it scroll by, and you can retrieve the data for analysis from the logfile you're creating later as well.This nets you scrolling output like this:
Note: there are a lot more options available for
zpool iostat, and checking the manpage might be a good idea if you're really keen on deriving data from it. In particular, there's a -H option to make the output more parsable, and a -w option to provide you with histographic data (probably mostly useful if you just want to run a single iostat to get data for all time since last boot).I tried to coax them into talking about it while I was doing these tests. They didn't respond until after the article went live, but then said they appreciated the heads up. No material answers yet on the questions I had for them; the rep who responded said "I'll see what I can do" but so far that's it.
Hopefully that'll turn into something material, but you know what they say about wishing in one hand and crapping in the other...
Obviously I do the majority of my testing under Linux unless I absolutely need to do Windows for some reason; I noticed that
mkfs.ext4automatically initiates a TRIM on the disk before formatting it, if it's not already virginal.That made me wonder whether
mdadmdoes the same thing when you create a new array. If it does, it doesn't tell you about it the waymkfs.ext4does.Omg I know, right? Meanwhile my mentions are blowing up with people like "you need to do this test lots of times or it's not scientific." Not a one of them offering to sponsor all that redundant retesting, either 😂
If I understand correctly, there's a sequential throughput disadvantage because I'm in the inner third, but a corresponding seek latency advantage because I'm only on a third of the platter so the heads don't need to move as far when seeking.
Both effects are relatively small, and even more so since this isn't an extreme short stroke. Back in the bad old days before SSDs, really high load databases sometimes would get run on RAID10 on DRASTICALLY short stroked drives to get that seek latency advantage (think 10G partitions on 200G drives). I remember arguments about whether you'd lose some of the seek latency advantage by using the outer tracks (for the sequential throughput advantage due to higher linear speed) or not, but the difference was really pretty small either way and I don't remember ever feeling like anybody had conclusively demonstrated whether short stroking at the outer tracks vs the inner tracks was better.
I also remember short stroking from even older days, when drive controllers weren't fast enough to read each sector as it passed under the head, so you might need three or four rotations to read a single track at the outer tracks. Back then, you sometimes short stroked on the INNER tracks to get a throughput advantage, since the controller might be able to read a whole track in one it two rotations instead of three or four at the inner tracks.
Rust is deeply weird and arcane. :)
I haven't had any luck getting ANY manufacturer to volunteer SMR disks for testing. Even before the "stealth SMR" thing had blown up, nobody would supply a review sample of one of their openly advertised big SMR disks--I wanted to see if I could get anywhere with Linux host-managed SMR, but everybody said "no review samples because we're not in the office because COVID-19."
Perhaps that's just the literal truth... But I'm still receiving review samples of things that AREN'T SMR drives to the tune of two or three a week. So it seems odd that disk manufacturers are the only vendors who've shut down their reviewer outreach shipping. /cynical
Thank you! Your article was great, btw. I had seen a ton of user reports of massive problems with SMR disks in vdevs, but yours was the first detailed test I found, and I appreciated the depth you went into with it.
This was not consultation (paid or otherwise) for a class action lawsuit.
Because I had a set of eight Ironwolf 12T on hand, and could get approval to purchase a single 4T EFAX red, but buying a full set of eight EFRX red to use for the baseline would have been out of the question.
If the 12T red was SMR, I'd have used that instead. But it isn't, so I did what I could with what I had to work with.
Completely un-fucked, so long as the number of disks you're flaking out on is smaller than the number of parity or redundancy blocks you have per data block in that vdev. Probably un-fucked, if it's equal to the number of parity or redundancy blocks you have in the vdev. Danger Will Robinson! if it's larger than the number of parity or redundancy blocks you have per data block in that vdev.
So, let's say you've got a RAIDz2 vdev, and one drive has a flaky SATA cable and keeps dropping out. Since you've got a RAIDz2 and that's only one disk, after this happens a few times, ZFS is going to say "fuck you" and fail that drive out of the vdev.
Now let's say that was a mirror, or a RAIDz1. ZFS isn't going to kick it out, but it will mark it "degraded" due to too many failures. ZFS doesn't kick it out because, even though your vdev would still function without it, it would be "uncovered"—meaning any further failure would bring the vdev, and thus the entire pool down with it—so ZFS tolerates that flaky motherfucker. Grudgingly.
Alright, so we have a flaky ass drive that keeps dropping off and reappearing, and ZFS won't fault it out entirely because it's the last parity/redundancy member. So how does it handle it? Well, when the disk drops out, ZFS just operates the vdev degraded—if it's a mirror, it only writes one disk; if it's a RAIDz, it does degraded reads and writes ignoring that disk, and reconstructing its blocks from parity when necessary.
When the disk "flakes back online", ZFS sees that it came online, so it begins resilvering it—but ZFS sees that it's the same disk that was there before it flaked out, so it doesn't do a stem-to-stern rebuild. ZFS knows when it dropped offline, so it only has to resilver new, changed data that happened while the drive was offline.
Does that help?
In a nutshell, SMR performance is beyond horrible on random access workloads, and torrenting is as random access as it gets.
Once you push through the non-SMR-encoded cache at the head of the disk, sustained random writes on an SMR disk are typically in the kilobytes per second.
If you're using zfs, you can mitigate this by setting recordsize=1M on the torrent receiving dataset. But it's a bad situation no matter what.
Lots and lots and lots of OEM PCs aimed at the low-end crowd. Here's one. And here's another. Want a third? =\
I wish nobody was making desktop or laptop PCs depending on rust anymore. But hell, I wished that ten years ago.
It's a horrendous issue if you've got Windows booting off of it, and running all your applications off of it.
Which is how I see the majority of desktop drives used, unfortunately. If it was only used as a secondary bulk storage drive for media in a desktop PC, then sure, SMR would be... tolerable, anyway. (Although holy lol, don't try to target torrents directly to a folder on an SMR disk...)
Any IT person worth their salt knows email is entirely too unreliable for automated monitoring reports, particularly when reporting on something as mission-critical as storage health.