linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ring btrfs
@ 2010-09-30  1:19 Simon Kirby
  0 siblings, 0 replies; only message in thread
From: Simon Kirby @ 2010-09-30  1:19 UTC (permalink / raw)
  To: linux-btrfs

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-

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-30  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30  1:19 ring btrfs Simon Kirby

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).