sdong
2297769b38
Fix regression issue of too large score ( #10518 )
...
Summary:
https://github.com/facebook/rocksdb/pull/10057 caused a regression bug: since the base level size is not adjusted based on L0 size anymore, L0 score might become very large. This makes compaction heavily favor L0->L1 compaction against L1->L2 compaction, and cause in some cases, data stuck in L1 without being moved down. We fix calculating a score of L0 by size(L0)/size(L1) in the case where L0 is large..
Pull Request resolved: https://github.com/facebook/rocksdb/pull/10518
Test Plan: run db_bench against data on tmpfs and watch the behavior of data stuck in L1 goes away.
Reviewed By: ajkr
Differential Revision: D38603145
fbshipit-source-id: 4949e52dc28b54aacfe08417c6e6cc7e40a27225
2022-08-11 17:10:36 -07:00
..
2022-08-11 13:55:28 -07:00
2022-08-11 13:55:28 -07:00
2022-08-10 10:19:20 -07:00
2022-08-08 16:10:08 -07:00
2022-08-05 12:02:33 -07:00
2022-07-17 07:13:59 -07:00
2022-07-14 21:49:34 -07:00
2022-07-17 07:13:59 -07:00
2022-07-17 07:13:59 -07:00
2022-08-10 17:34:38 -07:00
2022-08-05 12:02:33 -07:00
2022-07-14 21:49:34 -07:00
2022-08-10 17:34:38 -07:00
2022-06-13 11:08:50 -07:00
2022-08-10 17:34:38 -07:00
2022-08-09 14:44:47 -07:00
2022-08-10 17:34:38 -07:00
2022-06-28 16:08:30 -07:00
2022-07-28 17:07:36 -07:00
2022-06-01 11:02:27 -07:00
2022-06-23 09:42:18 -07:00
2022-06-27 16:37:09 -07:00
2022-08-09 11:39:57 -07:00
2022-08-09 11:39:57 -07:00
2022-07-05 15:44:35 -07:00
2022-08-05 12:02:33 -07:00
2022-08-04 00:42:13 -07:00
2022-06-22 15:45:21 -07:00
2022-06-28 13:52:35 -07:00
2022-07-05 10:10:37 -07:00
2022-06-17 16:40:47 -07:00
2022-05-24 12:14:10 -07:00
2022-05-27 07:23:31 -07:00
2022-05-27 05:58:43 -07:00
2022-08-08 14:36:34 -07:00
2022-07-15 19:01:30 -07:00
2022-07-15 19:01:30 -07:00
2022-08-05 13:16:58 -07:00
2022-08-04 12:14:28 -07:00
2022-06-30 10:16:03 -07:00
2022-07-31 11:39:16 -07:00
2022-05-19 18:39:41 -07:00
2022-05-19 18:39:41 -07:00
2022-08-02 14:52:10 -07:00
2022-07-14 10:09:31 -07:00
2022-07-14 10:09:31 -07:00
2022-07-15 14:42:00 -07:00
2022-07-21 13:35:36 -07:00
2022-07-21 13:35:36 -07:00
2022-07-15 19:01:30 -07:00
2022-08-01 17:56:13 -07:00
2022-07-15 19:01:30 -07:00
2022-08-01 17:56:13 -07:00
2022-05-19 11:04:21 -07:00
2022-08-05 12:02:33 -07:00
2022-08-05 12:02:33 -07:00
2022-07-14 21:49:34 -07:00
2022-08-05 12:02:33 -07:00
2022-07-14 10:09:31 -07:00
2022-08-11 12:45:50 -07:00
2022-08-11 12:45:50 -07:00
2022-08-11 12:45:50 -07:00
2022-06-28 13:52:35 -07:00
2022-07-13 20:54:49 -07:00
2022-07-25 16:27:26 -07:00
2022-07-25 16:27:26 -07:00
2022-07-25 16:27:26 -07:00
2022-08-10 10:19:20 -07:00
2022-06-22 15:45:21 -07:00
2022-08-10 17:34:38 -07:00
2022-08-05 12:02:33 -07:00
2022-08-05 12:02:33 -07:00
2022-07-14 21:49:34 -07:00
2022-08-08 16:10:08 -07:00
2022-08-05 12:02:33 -07:00
2022-06-25 15:30:47 -07:00
2022-08-10 17:34:38 -07:00
2022-07-14 21:49:34 -07:00
2022-07-18 19:08:39 -07:00
2022-07-18 19:08:39 -07:00
2022-08-04 00:42:13 -07:00
2022-06-10 16:07:03 -07:00
2022-07-12 13:30:35 -07:00
2022-08-05 12:02:33 -07:00
2022-08-08 14:36:34 -07:00
2022-07-15 19:01:30 -07:00
2022-07-15 19:01:30 -07:00
2022-05-17 09:39:22 -07:00
2022-06-10 16:07:03 -07:00
2022-08-11 12:45:50 -07:00
2022-08-09 14:44:47 -07:00
2022-08-09 14:44:47 -07:00
2022-08-10 10:19:20 -07:00
2022-05-24 10:28:57 -07:00
2022-08-01 17:56:13 -07:00
2022-06-21 11:56:53 -07:00
2022-06-14 13:06:40 -07:00
2022-06-20 20:58:11 -07:00
2022-08-01 17:56:13 -07:00
2022-08-01 17:56:13 -07:00
2022-08-01 17:56:13 -07:00
2022-08-04 12:51:57 -07:00
2022-08-10 10:19:20 -07:00
2022-08-11 17:10:36 -07:00
2022-08-04 12:51:57 -07:00
2022-06-20 20:58:11 -07:00
2022-07-21 13:35:36 -07:00
2022-07-21 13:35:36 -07:00
2022-07-21 13:35:36 -07:00
2022-08-10 17:34:38 -07:00
2022-06-08 14:16:43 -07:00
2022-06-08 14:16:43 -07:00
2022-07-05 15:44:35 -07:00
2022-08-05 12:02:33 -07:00
2022-07-05 15:44:35 -07:00
2022-08-10 17:34:38 -07:00
2022-05-18 00:41:41 -07:00
2022-08-02 14:52:10 -07:00
2022-08-02 14:52:10 -07:00