linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: many busy btrfs processes during heavy cpu and memory pressure
Date: Mon, 12 Aug 2019 13:43:39 +0800	[thread overview]
Message-ID: <e70b4ea0-3416-14ce-79de-4a4c0bf2c9cd@gmx.com> (raw)
In-Reply-To: <CAJCQCtSZ=0p-hFFgFW6hXmAHF=3yv+29DQO_=coc1Kmtzh-bvg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1591 bytes --]



On 2019/8/12 上午10:27, Chris Murphy wrote:
> I'm not sure this is a bug, but I'm also not sure if the behavior is expected.
> 
> Test system as follows:
> 
> Intel i7-2820QM, 4/8 cores
> 8 GiB RAM, 8 GiB swap on SSD plain partition
> Samsung SSD 840 EVO 250GB
> kernel 5.3.0-0.rc3.git0.1.fc31.x86_64+debug, but same behavior seen on 5.2.6
> 
> Test involves using a desktop, GNOME shell, while building webkitgtk.
> This uses all available RAM, and eventually all available swap.
> 
> While the build fails on ext4 as well as on Btrfs, the difference on
> Btrfs is many btrfs processes taking up quite a lot of cpu resources.
> And iotop shows many processes with unexpectedly high read IO. I don't
> have enough data collected to be certain, but it does seem on Btrfs
> the oom killer is substantially delayed. Realistically, by the time
> the system is in this state, practically speaking it's lost.
> 
> Screenshot shows iotop and top state information for this system, at
> the time sysrq+t is taken.
> 
> Full 'journalctl -k' output is rather excessive, 13MB uncompressed,
> 714K zstd compressed
> https://drive.google.com/open?id=1bYYedsj1O4pii51MUy-7cWhnWGXb67XE
> 
> from last sysrq+t
> https://drive.google.com/open?id=1vhnIki9lpiWK8T5Qsl81_RToQ8CFdnfU
> 
> last screenshot, matching above sysrq+t
> https://drive.google.com/open?id=12jpQeskPsvHmfvDjWSPOwIWSz09JIUlk

This shows it's btrfs endio workqueue, which do the data verification
against csum tree.

So you see the point, ext* just doesn't support data csum.

Thanks,
Qu




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2019-08-12  5:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-12  2:27 many busy btrfs processes during heavy cpu and memory pressure Chris Murphy
2019-08-12  5:43 ` Qu Wenruo [this message]
2019-08-12 16:00   ` Chris Murphy

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=e70b4ea0-3416-14ce-79de-4a4c0bf2c9cd@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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).