All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Burkov <boris@bur.io>
To: Hans Holmberg <hans@owltronix.com>
Cc: "Johannes Thumshirn" <Johannes.Thumshirn@wdc.com>,
	"Hans Holmberg" <Hans.Holmberg@wdc.com>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"jaegeuk@kernel.org" <jaegeuk@kernel.org>,
	"josef@toxicpanda.com" <josef@toxicpanda.com>,
	"Matias Bjørling" <Matias.Bjorling@wdc.com>,
	"Damien Le Moal" <Damien.LeMoal@wdc.com>,
	"Dennis Maisenbacher" <dennis.maisenbacher@wdc.com>,
	"Naohiro Aota" <Naohiro.Aota@wdc.com>,
	"Aravind Ramesh" <Aravind.Ramesh@wdc.com>,
	"Jørgen Hansen" <Jorgen.Hansen@wdc.com>,
	"mcgrof@kernel.org" <mcgrof@kernel.org>,
	"javier@javigon.com" <javier@javigon.com>,
	"hch@lst.de" <hch@lst.de>,
	"a.manzanares@samsung.com" <a.manzanares@samsung.com>,
	"guokuankuan@bytedance.com" <guokuankuan@bytedance.com>,
	"viacheslav.dubeyko@bytedance.com"
	<viacheslav.dubeyko@bytedance.com>,
	"j.granados@samsung.com" <j.granados@samsung.com>
Subject: Re: [LSF/MM/BPF TOPIC]: File system data placement for zoned block devices
Date: Tue, 7 Feb 2023 09:46:46 -0800	[thread overview]
Message-ID: <Y+KOhvnMCyi2NRRZ@zen> (raw)
In-Reply-To: <CANr-nt2q-1GjE6wx4W+6cSV9RULd8PKmS2-qyE2NvhRgMNawXQ@mail.gmail.com>

On Tue, Feb 07, 2023 at 01:31:44PM +0100, Hans Holmberg wrote:
> On Mon, Feb 6, 2023 at 3:24 PM Johannes Thumshirn
> <Johannes.Thumshirn@wdc.com> wrote:
> >
> > On 06.02.23 14:41, Hans Holmberg wrote:
> > > Out of the upstream file systems, btrfs and f2fs supports
> > > the zoned block device model. F2fs supports active data placement
> > > by separating cold from hot data which helps in reducing gc,
> > > but there is room for improvement.
> >
> > FYI, there's a patchset [1] from Boris for btrfs which uses different
> > size classes to further parallelize placement. As of now it leaves out
> > ZNS drives, as this can clash with the MOZ/MAZ limits but once active
> > zone tracking is fully bug free^TM we should look into using these
> > allocator hints for ZNS as well.
> >
> 
> That looks like a great start!
> 
> Via that patch series I also found Josef's fsperf repo [1], which is
> exactly what I have
> been looking for: a set of common tests for file system performance. I hope that
> it can be extended with longer-running tests doing several disk overwrites with
> application-like workloads.

It should be relatively straightforward to add more tests to fsperf and
we are happy to take new workloads! Also, feel free to shoot me any
questions you run into while working on it and I'm happy to help.

> 
> > The hot/cold data can be a 2nd placement hint, of cause, not just the
> > different size classes of an extent.
> 
> Yes. I'll dig into the patches and see if I can figure out how that
> could be done.

FWIW, I was working on reducing fragmentation/streamlining reclaim for
non zoned btrfs. I have another patch set that I am still working on
which attempts to use a working set concept to make placement
lifetime/lifecycle a bigger part of the btrfs allocator.

That patch set tries to make btrfs write faster in parallel, which may
be against what you are going for, that I'm not sure of. Also, I didn't
take advantage of the lifetime hints because I wanted it to help for the
general case, but that could be an interesting direction too!

If you're curious about that work, the current state of the patches is
in this branch:
https://github.com/kdave/btrfs-devel/compare/misc-next...boryas:linux:bg-ws
(Johannes, those are the patches I worked on after you noticed the
allocator being slow with many disks.)

Boris

> 
> Cheers,
> Hans
> 
> [1] https://github.com/josefbacik/fsperf

  reply	other threads:[~2023-02-07 17:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20230206134200uscas1p20382220d7fc10c899b4c79e01d94cf0b@uscas1p2.samsung.com>
2023-02-06 13:41 ` [LSF/MM/BPF TOPIC]: File system data placement for zoned block devices Hans Holmberg
2023-02-06 14:24   ` Johannes Thumshirn
2023-02-07 12:31     ` Hans Holmberg
2023-02-07 17:46       ` Boris Burkov [this message]
2023-02-08  9:16         ` Hans Holmberg
2023-02-07 19:53   ` [External] " Viacheslav A.Dubeyko
2023-02-08 17:13   ` Adam Manzanares
2023-02-09 10:05     ` Hans Holmberg
2023-02-09 10:22       ` Johannes Thumshirn
2023-02-17 14:33         ` Jan Kara
2023-02-14 21:05       ` Joel Granados
2023-02-14 21:08   ` Joel Granados

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=Y+KOhvnMCyi2NRRZ@zen \
    --to=boris@bur.io \
    --cc=Aravind.Ramesh@wdc.com \
    --cc=Damien.LeMoal@wdc.com \
    --cc=Hans.Holmberg@wdc.com \
    --cc=Johannes.Thumshirn@wdc.com \
    --cc=Jorgen.Hansen@wdc.com \
    --cc=Matias.Bjorling@wdc.com \
    --cc=Naohiro.Aota@wdc.com \
    --cc=a.manzanares@samsung.com \
    --cc=dennis.maisenbacher@wdc.com \
    --cc=guokuankuan@bytedance.com \
    --cc=hans@owltronix.com \
    --cc=hch@lst.de \
    --cc=j.granados@samsung.com \
    --cc=jaegeuk@kernel.org \
    --cc=javier@javigon.com \
    --cc=josef@toxicpanda.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=viacheslav.dubeyko@bytedance.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.