public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias Ferdinand <mf@mferd.de>
To: Marc Smith <msmith626@gmail.com>
Cc: linux-bcache@vger.kernel.org
Subject: Re: Small Cache Dev Tuning
Date: Tue, 16 Jun 2020 19:54:03 +0200	[thread overview]
Message-ID: <20200616175403.GB626279@xoff> (raw)
In-Reply-To: <CAH6h+hcikX895gU2mGC05MTw7BCdV+kPeqGgrSRPwKXe1hjw+g@mail.gmail.com>

On Tue, Jun 16, 2020 at 10:57:43AM -0400, Marc Smith wrote:
> This certainly helps me allow more dirty data than what the defaults
> are set to.

I only have production experience with slightly older kernels (4.15) and
~40GB partition of an Intel DC SATA SSD (XFS fs). Average latency of the
bcache device improved a lot with _reduced_ writeback_percent. I guess
dirty block bookkeeping adds its own I/O.
Currently I run them even at writeback_percent=1.

Not exactly answering your question, though :-)

Matthias


 But a couple other followup questions:
> - Any additional recommended tuning/settings for small cache devices?
> - Is the soft threshold for dirty writeback data 70% so there is
> always room for metadata on the cache device? Dangerous to try and
> recompile with larger maximums?
> - I'm still studying the code, but so far I don't see this, and wanted
> to confirm that: The writeback thread doesn't look at congestion on
> the backing device when flushing out data (and say pausing the
> writeback thread as needed)? For spinning media, if lots of latency
> sensitive reads are going directly to the backing device, and we're
> flushing a lot of data from cache to backing, that hurts.
> 
> 
> Thanks,
> 
> Marc

  reply	other threads:[~2020-06-16 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 14:57 Small Cache Dev Tuning Marc Smith
2020-06-16 17:54 ` Matthias Ferdinand [this message]
2020-06-20 14:15 ` Coly Li
2020-06-23 17:44   ` Marc Smith

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=20200616175403.GB626279@xoff \
    --to=mf@mferd.de \
    --cc=linux-bcache@vger.kernel.org \
    --cc=msmith626@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