From 80651e6dccff4869a9bcedd08e6b90bb0e0779c2 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 8 Apr 2018 13:46:01 +0300 Subject: [PATCH] database: reduce idle memtable flush cpu shares to 1% Commit 1671d9c433b40586e5ec8c1debaa1d05341c7005 (not on any release branch) accidentally bumped the idle memtable flush cpu shares to 100 (representing 10%), causing flushes to be too when they don't comsume too much cpu. Fixes #3243. Message-Id: <20180408104601.9607-1-avi@scylladb.com> --- backlog_controller.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backlog_controller.hh b/backlog_controller.hh index 515960ef24..5e3158d999 100644 --- a/backlog_controller.hh +++ b/backlog_controller.hh @@ -119,7 +119,7 @@ public: flush_controller(seastar::scheduling_group sg, const ::io_priority_class& iop, float static_shares) : backlog_controller(sg, iop, static_shares) {} flush_controller(seastar::scheduling_group sg, const ::io_priority_class& iop, std::chrono::milliseconds interval, float soft_limit, std::function current_dirty) : backlog_controller(sg, iop, std::move(interval), - std::vector({{soft_limit, 100}, {soft_limit + (hard_dirty_limit - soft_limit) / 2, 200} , {hard_dirty_limit, 1000}}), + std::vector({{soft_limit, 10}, {soft_limit + (hard_dirty_limit - soft_limit) / 2, 200} , {hard_dirty_limit, 1000}}), std::move(current_dirty) ) {}