All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fisher <fisherthepooh@protonmail.com>
To: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Why not always do copy-out in jbd2_journal_write_metadta_buffer
Date: Mon, 22 Oct 2018 10:34:48 +0000	[thread overview]
Message-ID: <usGdshd4UQ6wFx4jVDkzY1xddFnUnT7NXj6IWA-uVczdSc5_TmczQvtmULxNVQ3reUPTmyQd2YeLhPa_L2uPbaNdfBPVlLz7rQQ9oC7aSkw=@protonmail.com> (raw)

Hi,

Recently I was testing my storage's performance and found that there were

periodic performance drops when I ran sequential write benchmark.

After profiling the duration in each step, I found that the dropping

performance was due to wait_on_bit_io(&bh->b_state, BH_Shadow, TASK_UNINTERRUPTIBLE)

in do_get_write_access(). And this is what made me confused, if my understanding was right,

I thought buffer_shadow(bh) stands for buffer not being copied-out that's why we should wait.

But why don't we do copy-out in jbd2_journal_write_metadta_buffer()? and if we do

do the copy-out, does that mean we don't have to set_buffer_shadow because it refers to

buffer not copied-out?

I made a test, when a buffer_head goes into jbd2_journal_write_metadta_buffer(), as long as

it belongs to metadata, then force it to do copy-out and do not set_buffer_shadow, then there

will be no periodic performance drops. Is this test reasonable?

Thanks,

             reply	other threads:[~2018-10-22 18:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22 10:34 Fisher [this message]
2018-10-25 11:41 ` Why not always do copy-out in jbd2_journal_write_metadta_buffer Jan Kara
2018-11-03  5:15   ` 答复: " 王小光(费曼)

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='usGdshd4UQ6wFx4jVDkzY1xddFnUnT7NXj6IWA-uVczdSc5_TmczQvtmULxNVQ3reUPTmyQd2YeLhPa_L2uPbaNdfBPVlLz7rQQ9oC7aSkw=@protonmail.com' \
    --to=fisherthepooh@protonmail.com \
    --cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.