Files
scylladb/utils
Tomasz Grabiec d76e9e4026 lsa: Fix performance regression in eviction and compact_on_idle
Region comparator, used by the two, calls region_impl::min_occupancy(),
which calls log_histogram::largest(). The latter is O(N) in terms of
the number of segments, and is supposed to be used only in tests.
We should call one_of_largest() instead, which is O(1).

This caused compact_on_idle() to take more CPU as the number of
segments grew (even when there was nothing to compact). Eviction
would see the same kind of slow down as well.

Introduced in 11b5076b3c.

Message-Id: <1498641973-20054-1-git-send-email-tgrabiec@scylladb.com>
(cherry picked from commit 3489c68a68)
2017-06-28 12:33:11 +03:00
..
2016-06-20 21:29:51 +01:00
2016-12-05 11:48:29 +02:00
2017-04-17 23:03:15 +03:00
2017-05-17 12:30:03 +03:00
2017-02-01 14:39:08 +02:00
2016-09-28 17:34:16 +03:00
2017-03-02 09:05:10 +00:00