From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Seagate ST8000NM0065 PMR or SMR plus NAS SAS SATA question
Date: Fri, 22 May 2020 14:23:17 -0400 [thread overview]
Message-ID: <CAGfcS_nk87Dx24gEoZNN2rmqNugzOa6e9KJ6F+T6LA=uH+g62Q@mail.gmail.com> (raw)
In-Reply-To: <c25d83fa-b023-8866-8d19-6045c21f62c1@youngman.org.uk>
On Fri, May 22, 2020 at 2:08 PM antlists <antlists@youngman.org.uk> wrote:
>
> So what you could do is allocate one zone of CMR to every four or five
> zones of SMR and just reshingle each SMR as the CMR filled up. The
> important point is that zones can switch from CMR cache to SMR filling
> up, to full SMR zones decaying as they are re-written.
I get how this will provide more flexibility. However, there is a big
problem here. Unless you are using TRIM you have no idea what space
is in use vs free. Once a block has been written to once, it needs to
be forever treated as occupied.
So this cache really is only useful when the drive is brand new. Once
it has all been written once you're limited to dedicated CMR regions
for cache, because all the SMR areas are shingled.
If you are using TRIM then this does give you more flex space, but
only if enough overlapping space is unused, and you do need to
reshingle to write to that unused space. Depending on the degree of
overlap you still have only a fraction of disk available for your
cache.
> Which is why I'd break it down to maybe 2GB zones. If as the zone fills
> it streams, but is then re-organised and re-written properly when time
> permits, you've not got too large chunks of metadata.
> ...
> The problem with drives at the moment is they run out of CMR cache, so
> they have to rewrite all those blocks WHILE THE USER IS STILL WRITING.
> The point of my idea is that they can repurpose disk as SMR or CMR as
> required, so they don't run out of cache at the wrong time ...
You still have a limited cache, and if it fills up you hit the performance wall.
The question just comes whether it is more efficient to have
flex-space that can be PMR or SMR, or having dedicated space that is
PMR-only. I think that depends greatly on whether you can assume the
use of TRIM and how much free space the drive will have in general.
Since PMR is less dense you have to give up a lot of SMR space for any
PMR use of that space.
A big problem with drive-managed SMR is that it basically has to
assume the OS is dumb, which means most writes are in-place with no
trims, assuming the drive even supports trim.
--
Rich
next prev parent reply other threads:[~2020-05-22 18:23 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-10 6:54 [gentoo-user] Seagate ST8000NM0065 PMR or SMR plus NAS SAS SATA question Dale
2020-05-10 7:44 ` Michael
2020-05-10 8:02 ` Dale
2020-05-10 13:19 ` Daniel Frey
2020-05-10 18:11 ` Dale
2020-05-10 19:11 ` Rich Freeman
2020-05-10 20:52 ` antlists
2020-05-22 15:32 ` Michael
2020-05-22 15:43 ` Rich Freeman
2020-05-22 16:15 ` Dale
2020-05-22 17:10 ` Rich Freeman
2020-05-22 18:06 ` Dale
2020-05-22 16:47 ` antlists
2020-05-22 17:20 ` Rich Freeman
2020-05-22 18:08 ` antlists
2020-05-22 18:23 ` Rich Freeman [this message]
2020-05-22 21:40 ` antlists
2020-05-22 23:31 ` Rich Freeman
2020-05-23 7:39 ` Michael
2020-05-23 7:56 ` Dale
2020-05-23 8:35 ` Wols Lists
2020-05-23 15:39 ` David Haller
2020-05-23 21:35 ` John Covici
2020-05-24 14:24 ` David Haller
2020-05-23 15:36 ` David Haller
2020-05-24 17:16 ` Dale
2020-05-10 20:59 ` Dale
2020-06-12 5:45 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGfcS_nk87Dx24gEoZNN2rmqNugzOa6e9KJ6F+T6LA=uH+g62Q@mail.gmail.com' \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox