1 |
On 16/06/2020 13:25, Rich Freeman wrote: |
2 |
> And of course the problem with these latest hidden SMR drives is that |
3 |
> they generally don't support TRIM, |
4 |
|
5 |
This, I believe, is a problem with the ATA spec. I don't understand |
6 |
what's going on, but something like for these drives you need v4 of the |
7 |
spec, and only v3 is finalised. Various people have pointed out holes in |
8 |
this theory, so you don't need to add to them :-) But yes, I do |
9 |
understand that apparently there is no official standard way to send a |
10 |
trim to these drives ... |
11 |
|
12 |
> so even repeated sequential writes |
13 |
> can be a problem because the drive doesn't realize that after you send |
14 |
> block 1 you're going to send blocks 2-100k all sequentially. If it |
15 |
> knew that then it would just start overwriting in place obliterating |
16 |
> later tracks, since they're just going to be written next anyway. |
17 |
|
18 |
No it can't do that. Because when it overwrites the end of the file it |
19 |
will be obliterating other random files that aren't going to be |
20 |
overwritten ... |
21 |
|
22 |
> Instead this drive is going to cache every write until it can |
23 |
> consolidate them, which isn't terrible but it still turns every seek |
24 |
> into three (write buffer, read buffer, write permanent - plus updating |
25 |
> metadata). |
26 |
|
27 |
Which IS terrible if you don't give the drive down-time to flush the |
28 |
buffer ... |
29 |
|
30 |
> If they weren't being sneaky they could have made it |
31 |
> drive-managed WITH TRIM so that it worked more like an SSD where you |
32 |
> get the best performance if the OS uses TRIM, but it can fall back if |
33 |
> you don't. Sequential writes on trimmed areas for SMR should perform |
34 |
> identically to writes on CMR drives. |
35 |
|
36 |
You're forgetting one thing - rewriting a block on SSD or CMR doesn't |
37 |
obliterate neighbouring blocks ... with SMR for every track you rewrite |
38 |
you have to salvage the neighbouring track too ... |
39 |
|
40 |
Cheers, |
41 |
Wol |