linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs fi defrag interfering (maybe) with Ceph OSD operation
Date: Mon, 28 Sep 2015 20:52:41 +0000 (UTC)	[thread overview]
Message-ID: <pan$a0ad5$3d2cb4dd$ab00a420$4a68e0c6@cox.net> (raw)
In-Reply-To: 56090E83.4030708@bouton.name

Lionel Bouton posted on Mon, 28 Sep 2015 11:55:15 +0200 as excerpted:

> From what I understood, filefrag doesn't known the length of each extent
> on disk but should have its position. This is enough to have a rough
> estimation of how badly fragmented the file is : it doesn't change the
> result much when computing what a rotating disk must do (especially how
> many head movements) to access the whole file.

AFAIK, it's the number of extents reported that's the problem with 
filefrag and btrfs compression.  Multiple 128 KiB compression blocks can 
be right next to each other, forming one longer extent on-device, but due 
to the compression, filefrag sees and reports them as one extent per 
compression block, making the file look like it has perhaps thousands or 
tens of thousands of extents when in actuality it's only a handful, 
single or double digits.

In that regard, length or position neither one matter, filefrag will 
simply report a number of extents orders of magnitude higher than what's 
actually there, on-device.

But I'm not a coder so could be entirely wrong; that's simply how I 
understand it based on what I've seen on-list from the devs themselves.

> In the case of Ceph OSD, this isn't what causes the performance problem:
> the journal is on the main subvolume and snapshots are done on another
> subvolume.

Understood... now.  I was actually composing a reply saying I didn't get 
it, when suddenly I did.  The snapshots were being taken of different 
subvolumes entirely, thus excluding the files here in question.

Thanks. =:^)

>>> This is on a 3.8.19 kernel [...]

>> [Btrfs was still experimental] until 3.12 [so] 3.8
>> is very much still in btrfs-experimental land! [...]
> 
> Oops, that was a typo : I meant 3.18.9, sorry :-(

That makes a /world/ of difference!  LOL!  I'm very much relieved!  =:^)

-- 
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-09-28 20:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-27 15:34 btrfs fi defrag interfering (maybe) with Ceph OSD operation Lionel Bouton
2015-09-28  0:18 ` Duncan
2015-09-28  9:55   ` Lionel Bouton
2015-09-28 20:52     ` Duncan [this message]
2015-09-28 21:55       ` Lionel Bouton
2015-09-29 14:49 ` Lionel Bouton
2015-09-29 17:14   ` Lionel Bouton

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$a0ad5$3d2cb4dd$ab00a420$4a68e0c6@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;
as well as URLs for NNTP newsgroup(s).