Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: dear developers, can we have notdatacow + checksumming, plz?
Date: Tue, 22 Dec 2015 09:12:26 +0000 (UTC)	[thread overview]
Message-ID: <pan$b5e12$31be6ea6$fd54b60e$5d72fa7a@cox.net> (raw)
In-Reply-To: 56780042.5060307@gmail.com

Austin S. Hemmelgarn posted on Mon, 21 Dec 2015 08:36:02 -0500 as
excerpted:

> On 2015-12-16 21:09, Christoph Anton Mitterer wrote:

>> On Tue, 2015-12-15 at 11:00 -0500, Austin S. Hemmelgarn wrote:

>>> nodatacow only [avoids fragmentation] if the file is
>>> pre-allocated, if it isn't, then it still ends up fragmented.

>> Hmm is that "it may end up fragmented" or a "it will definitely? Cause
>> I'd have hoped, that if nothing else had been written in the meantime,
>> btrfs would perhaps try to write next to the already allocated blocks.

> If there are multiple files being written, then there is a relatively
> high probability that they will end up fragmented if they are more than
> about 64k and aren't pre-allocated.

Does the 30-second-by-default commit window (and similarly 30-second-
default dirty-flush-time at the VFS level) modify this at all?  It has 
been my assumption that same-file writes accumulated during this time 
should merge, increasing efficiency and decreasing fragmentation (both 
with and without nocow), tho of course further writes outside this 30-
second window will likely trigger it, if other files have been written in 
parallel or in the mean time.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


  reply	other threads:[~2015-12-22  9:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-14  4:59 dear developers, can we have notdatacow + checksumming, plz? Christoph Anton Mitterer
2015-12-14  6:42 ` Russell Coker
2015-12-15  1:02   ` Christoph Anton Mitterer
2015-12-14 14:16 ` Austin S. Hemmelgarn
2015-12-15  3:15   ` Christoph Anton Mitterer
2015-12-15 16:00     ` Austin S. Hemmelgarn
2015-12-16  9:15       ` Duncan
2015-12-16  9:55       ` Duncan
2015-12-17  2:09       ` Christoph Anton Mitterer
2015-12-21 13:36         ` Austin S. Hemmelgarn
2015-12-22  9:12           ` Duncan [this message]
2015-12-22 12:16             ` Austin S. Hemmelgarn

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='pan$b5e12$31be6ea6$fd54b60e$5d72fa7a@cox.net' \
    --to=1i5t5.duncan@cox.net \
    --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