linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Kirby <sim@hostway.ca>
To: linux-btrfs@vger.kernel.org
Subject: ring btrfs
Date: Wed, 29 Sep 2010 18:19:20 -0700	[thread overview]
Message-ID: <20100930011920.GA14974@hostway.ca> (raw)

Just curious...

I've been wondering if it would possible/useful to make a btrfs mode
where it _always_ writes in a ring on the entire disk.  Since it can
write "anywhere" already, it could just write sequentially always.

The write process would have to be changed to read a blob, throw away
the garbage, and fit in the new stuff in the gaps, then write the blob.
Write performance would degrade to half once the disk is half full of
stuff that can't be thrown away, but then almost all file I/O patterns
should be about the same speed, because disk writes are only sequential.

Or is it that it's pretty much always like this until space is tight
anyway?  I suspect that eventually free space will be pretty fragmented,
and it'll have to seek a lot just to write in available space.  Perhaps
the performance is similar or worse to sequential read+write versus just
writing in the gaps in many/all cases?

Maybe this what nilfs2, etc., are all about, in which case maybe it would
be neat to have a mount option or even realtime heuristic-based switching
if load patterns fit better to a particular mode...

Simon-

                 reply	other threads:[~2010-09-30  1:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100930011920.GA14974@hostway.ca \
    --to=sim@hostway.ca \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).