stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Kai Krakow <kai@kaishome.de>
Cc: Coly Li <colyli@suse.de>,
	stable@vger.kernel.org, Michael Lyle <mlyle@lyle.org>,
	Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 1/1] bcache: set max writeback rate when I/O request is idle
Date: Fri, 14 Dec 2018 08:21:16 +0100	[thread overview]
Message-ID: <20181214072116.GF31355@kroah.com> (raw)
In-Reply-To: <20180909121507.32499-2-kai@kaishome.de>

On Sun, Sep 09, 2018 at 02:15:07PM +0200, Kai Krakow wrote:
> From: Coly Li <colyli@suse.de>
> 
> Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle")
> allows the writeback rate to be faster if there is no I/O request on a
> bcache device. It works well if there is only one bcache device attached
> to the cache set. If there are many bcache devices attached to a cache
> set, it may introduce performance regression because multiple faster
> writeback threads of the idle bcache devices will compete the btree level
> locks with the bcache device who have I/O requests coming.
> 
> This patch fixes the above issue by only permitting fast writebac when
> all bcache devices attached on the cache set are idle. And if one of the
> bcache devices has new I/O request coming, minimized all writeback
> throughput immediately and let PI controller __update_writeback_rate()
> to decide the upcoming writeback rate for each bcache device.
> 
> Also when all bcache devices are idle, limited wrieback rate to a small
> number is wast of thoughput, especially when backing devices are slower
> non-rotation devices (e.g. SATA SSD). This patch sets a max writeback
> rate for each backing device if the whole cache set is idle. A faster
> writeback rate in idle time means new I/Os may have more available space
> for dirty data, and people may observe a better write performance then.
> 
> Please note bcache may change its cache mode in run time, and this patch
> still works if the cache mode is switched from writeback mode and there
> is still dirty data on cache.
> 
> Fixes: Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle")
> Cc: stable@vger.kernel.org #4.16+
> Signed-off-by: Coly Li <colyli@suse.de>
> Tested-by: Kai Krakow <kai@kaishome.de>
> Tested-by: Stefan Priebe <s.priebe@profihost.ag>
> Cc: Michael Lyle <mlyle@lyle.org>
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> (cherry picked from commit ea8c5356d39048bc94bae068228f51ddbecc6b89)
> Signed-off-by: Kai Krakow <kai@kaishome.de>

Given the size of this, and the fact that no one responded, I'm going to
drop this from my review queue now, sorry.  If you get some testers,
please feel free to resend it.

thanks,

greg k-h

      reply	other threads:[~2018-12-14  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180909121507.32499-1-kai@kaishome.de>
2018-09-09 12:15 ` [PATCH 1/1] bcache: set max writeback rate when I/O request is idle Kai Krakow
2018-12-14  7:21   ` Greg KH [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=20181214072116.GF31355@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=axboe@kernel.dk \
    --cc=colyli@suse.de \
    --cc=kai@kaishome.de \
    --cc=mlyle@lyle.org \
    --cc=stable@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 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).