Skip to content

Commit

Permalink
database: reduce idle memtable flush cpu shares to 1%
Browse files Browse the repository at this point in the history
Commit 1671d9c (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 scylladb#3243.
Message-Id: <[email protected]>
  • Loading branch information
avikivity authored and duarten committed Apr 8, 2018
1 parent 53d97b1 commit 80651e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backlog_controller.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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<float()> current_dirty)
: backlog_controller(sg, iop, std::move(interval),
std::vector<backlog_controller::control_point>({{soft_limit, 100}, {soft_limit + (hard_dirty_limit - soft_limit) / 2, 200} , {hard_dirty_limit, 1000}}),
std::vector<backlog_controller::control_point>({{soft_limit, 10}, {soft_limit + (hard_dirty_limit - soft_limit) / 2, 200} , {hard_dirty_limit, 1000}}),
std::move(current_dirty)
)
{}
Expand Down

0 comments on commit 80651e6

Please sign in to comment.