linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: "Jure Erznožnik" <jure.erznoznik@gmail.com>,
	linux-raid@vger.kernel.org, tkonto@gmail.com
Subject: Re: Fwd: (user) Help needed: mdadm seems to constantly touch my disks
Date: Thu, 22 Dec 2016 09:52:44 +1100	[thread overview]
Message-ID: <87mvforj2b.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <CAJ=9zicozhGYUy_iB7EPSRxMVDJBG0ArhKNqyKQYCVwA0zEkew@mail.gmail.com>

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

On Wed, Dec 21 2016, Jure Erznožnik wrote:

> Mr Brown,
>
> Let me begin with: please give me your paypal address or something so
> that I can at least buy you a beer or something

Thanks :-)
My first inclination is to say "no thanks" as I am very adequately
compensated by SUSE, and it is part of my role at SUSE to ensure the
upstream kernel remains healthy.  Encouraging a health community is part
of that (and I often learn something while helping people fix things).

But my second inclination is to recognize that gratitude is an important
part of human interactions, and that a community is strong when
gratitude is appropriately given and received.  It is not my place to
direct others how they should show gratitude.
So I'll tell you my paypal address is neil@brown.name and that I'm more
likely to enjoy hot chocolate than beer, but I'll also emphasize that
there is no expectation attached to this information. :-)

>
>
> Your analysis and discovery that iSCSI is the origin of writes got me
> thinking: how can he see that on md0 device if that device has two
> more layers (bcache + LVM) before iSCSI even comes into play. Maybe
> the system propagates the origin down the block devices or something,
> totally not relevant here. So I embarked on a journey of total data
> destruction by disabling one layer at a time. I started by simply
> detaching bcache as that was the first thing on the list - and was
> non-destructive to boot :)
>
> I have found the culprit:
> It is bcache that does the one second writes. I have yet to find the
> exact parameters that influence this behaviour, but the output of
> writeback_rate_debug is EXTREMELY clear: it's writing a bit of data
> each second, reducing the dirty cache by that tiny amount. This is
> what causes the write "amplification" resulting in clicks long after a
> write has been done - because bcache only writes tiny amounts each
> second instead of flushing the entire cache at once when the time
> comes.

Now that we have an understanding of what is happening, I can recommend
that you increase /sys/block/md0/md/safe_mode_delay.  It is measured in
seconds.  If you make it larger than the period of the bcache writes, it
should stop the 'ticking' you mentioned.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2016-12-21 22:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13  8:13 (user) Help needed: mdadm seems to constantly touch my disks Jure Erznožnik
2016-12-14  1:15 ` NeilBrown
     [not found]   ` <CAJ=9zieRuTNiEGuB_RouqbdLGoxNkn09yiogR6rND84LtMdbxA@mail.gmail.com>
2016-12-15  7:01     ` Fwd: " Jure Erznožnik
2016-12-18 19:40       ` Jure Erznožnik
2016-12-18 21:30         ` Theophanis Kontogiannis
2016-12-18 22:21       ` Fwd: " NeilBrown
     [not found]         ` <CAJ=9zidNV4sPj7KC7_mJEo8+=-YTKyWD5RiLsGG9p33CV12Qdg@mail.gmail.com>
2016-12-19  4:01           ` NeilBrown
2016-12-19  7:12             ` Jure Erznožnik
2016-12-19 23:39               ` NeilBrown
2016-12-21 11:33                 ` Jure Erznožnik
2016-12-21 22:52                   ` NeilBrown [this message]

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=87mvforj2b.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=jure.erznoznik@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=tkonto@gmail.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).