From: "Stephen R. van den Berg" <srb@cuci.nl>
To: Kent Overstreet <kmo@daterainc.com>
Cc: "linux-bcache@vger.kernel.org" <linux-bcache@vger.kernel.org>
Subject: patch (Re: 3.18.3 + latest bcache-dev)
Date: Thu, 22 Jan 2015 13:33:32 +0100 [thread overview]
Message-ID: <20150122123332.GA23810@cuci.nl> (raw)
In-Reply-To: <20150121164553.GA15237@cuci.nl>
Stephen R. van den Berg wrote:
>What I notice are:
>- The 100% CPU usage for four bcache_writebac processes is back. I've
> already tried raising the value you suggested from 30 to 60, but I did
> not have an opportunity to reboot yet. Will report back on this.
What I saw:
a. After running several hours, copying roughly 3.0TB through the two
SSD caching devices onto the BTRFS backing device consisting of
four HDDs, the bcache_writebac processes were still eating 100% CPU each.
b. Then did a manual umount of the fs, then stopped the bcache device
through the proc filesystem.
c. Rebooted.
d. Came back in a patched kernel, 100% CPU usage is gone.
The patch I used (I did not investigate the correctness of the value
picked, I simply doubled it as an initial guess):
commit 2abecdbd214c94741012de32759bb0de4c6adbf9
Author: Stephen R. van den Berg <srb@cuci.nl>
Date: Tue Jan 13 23:24:52 2015 +0100
Increase btree_scan_ratelimit to avoid 100% CPU hogging.
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 653419b..5fff8ad 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -867,7 +867,7 @@ static struct cache_set *bch_cache_set_alloc(struct cache *ca)
c->error_limit = 16 << IO_ERROR_SHIFT;
c->tiering_percent = 10;
- c->btree_scan_ratelimit = 30;
+ c->btree_scan_ratelimit = 60;
c->copy_gc_enabled = 1;
c->tiering_enabled = 1;
--
Stephen.
next prev parent reply other threads:[~2015-01-22 12:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 1:24 3.18.3 + latest bcache-dev Stephen R. van den Berg
2015-01-21 8:00 ` Kent Overstreet
2015-01-21 11:04 ` Stephen R. van den Berg
2015-01-21 16:45 ` Stephen R. van den Berg
2015-01-22 12:33 ` Stephen R. van den Berg [this message]
2015-01-22 12:56 ` patch (Re: 3.18.3 + latest bcache-dev) Stephen R. van den Berg
2015-01-21 22:47 ` 3.18.3 + latest bcache-dev Slava Pestov
2015-01-21 23:04 ` Stephen R. van den Berg
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=20150122123332.GA23810@cuci.nl \
--to=srb@cuci.nl \
--cc=kmo@daterainc.com \
--cc=linux-bcache@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