linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: rob@robspanton.com, linux-btrfs@vger.kernel.org
Subject: Re: Performance Issues
Date: Fri, 19 Sep 2014 08:59:27 -0400	[thread overview]
Message-ID: <541C28AF.2010607@gmail.com> (raw)
In-Reply-To: <541C264E.106@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3002 bytes --]

On 2014-09-19 08:49, Austin S Hemmelgarn wrote:
> On 2014-09-19 08:18, Rob Spanton wrote:
>> Hi,
>>
>> I have a particularly uncomplicated setup (a desktop PC with a hard
>> disk) and I'm seeing particularly slow performance from btrfs.  A `git
>> status` in the linux source tree takes about 46 seconds after dropping
>> caches, whereas on other machines using ext4 this takes about 13s.  My
>> mail client (evolution) also seems to perform particularly poorly on
>> this setup, and my hunch is that it's spending a lot of time waiting on
>> the filesystem.
>>
>> I've tried mounting with noatime, and this has had no effect.  Anyone
>> got any ideas?
>>
>> Here are the things that the wiki page asked for [1]:
>>
>> uname -a:
>>
>>          Linux zarniwoop.blob 3.16.2-200.fc20.x86_64 #1 SMP Mon Sep 8
>>          11:54:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>>
>> btrfs --version:
>>
>>          Btrfs v3.16
>>
>> btrfs fi show:
>>
>>          Label: 'fedora'  uuid: 717c0a1b-815c-4e6a-86c0-60b921e84d75
>>              Total devices 1 FS bytes used 1.49TiB
>>              devid    1 size 2.72TiB used 1.50TiB path /dev/sda4
>>
>>          Btrfs v3.16
>>
>> btrfs fi df /:
>>
>>          Data, single: total=1.48TiB, used=1.48TiB
>>          System, DUP: total=32.00MiB, used=208.00KiB
>>          Metadata, DUP: total=11.50GiB, used=10.43GiB
>>          unknown, single: total=512.00MiB, used=0.00
>>
>> dmesg dump is attached.
>>
>> Please CC any responses to me, as I'm not subscribed to the list.
>>
>> Cheers,
>>
>> Rob
>>
>> [1] https://btrfs.wiki.kernel.org/index.php/Btrfs_mailing_list
>>
>>
> WRT the performance of Evolution, the issue is probably fragmentation of
> the data files.  If you run the command:
> # btrfs fi defrag -rv /home
> you should see some improvement in evolution performance (until you get
> any new mail that is).  Evolution (like most graphical e-mail clients
> these days) uses sqlite for data storage, and sqlite database files are
> one of the known pathological cases for COW filesystems in general; the
> solution is to mark the files as NOCOW (see the info about VM images in
> [1] and [2], the same suggestions apply to database files).
>
> As for git, I haven't seen any performance issues specific to BTRFS; are
> you using any compress= mount option? zlib based compression is known to
> cause serious slowdowns.  I don't think that git uses any kind of
> database for data storage.  Also, if the performance comparison is from
> other systems, unless those systems have the EXACT same hardware
> configuration, they aren't really a good comparison.  Unless the pc this
> is on is a relatively recent system (less than a year or two old), it
> may just be hardware that is the performance bottleneck.
>
Realized after I sent this that I forgot the links for [1] and [2]

[1] https://btrfs.wiki.kernel.org/index.php/UseCases
[2] https://btrfs.wiki.kernel.org/index.php/FAQ


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2455 bytes --]

  reply	other threads:[~2014-09-19 12:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19 12:18 Performance Issues Rob Spanton
2014-09-19 12:25 ` Swâmi Petaramesh
2014-09-19 12:58   ` Austin S Hemmelgarn
2014-09-19 12:49 ` Austin S Hemmelgarn
2014-09-19 12:59   ` Austin S Hemmelgarn [this message]
2014-09-19 13:34 ` Holger Hoffstätte
2014-09-22 11:59   ` David Sterba
2014-09-22 12:37     ` Holger Hoffstätte
2014-09-22 13:25       ` David Sterba
2014-09-19 13:51 ` Holger Hoffstätte
2014-09-19 14:53   ` Austin S Hemmelgarn
2014-09-19 16:23     ` Holger Hoffstätte
2014-09-19 17:51   ` Zach Brown
2014-09-20  8:23   ` Marc Dietrich
2014-09-20 13:41     ` Martin
2014-09-20 18:29       ` Chris Murphy
2014-09-20 14:04     ` Wang Shilong
2014-09-20 20:44       ` Marc Dietrich
2014-09-19 15:05 ` Josef Bacik
2014-09-19 16:51   ` Rob Spanton
2014-09-19 17:45     ` Josef Bacik
2014-10-30 14:23       ` Rob Spanton
2014-09-20  5:58     ` Duncan

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=541C28AF.2010607@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rob@robspanton.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 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).