github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/compaction_picker_level_max_bytes (about) 1 init 1 2 ---- 3 6: 9223372036854775807 4 5 init 1 6 6: 1 7 ---- 8 6: 1 9 10 init 1 11 6: 2 12 ---- 13 5: 1 14 6: 2 15 16 init 1 17 6: 2 18 ---- 19 5: 1 20 6: 2 21 22 init 1 23 3: 1 24 4: 1 25 5: 1 26 6: 1 27 ---- 28 3: 1 29 4: 1 30 5: 1 31 6: 1 32 33 init 1 34 1: 1 35 2: 1 36 3: 1 37 4: 1 38 5: 1 39 6: 1 40 ---- 41 1: 1 42 2: 1 43 3: 1 44 4: 1 45 5: 1 46 6: 1 47 48 init 1 49 1: 1 50 2: 10 51 3: 100 52 4: 1000 53 5: 10000 54 6: 100000 55 ---- 56 1: 1 57 2: 10 58 3: 100 59 4: 1000 60 5: 10000 61 6: 100000 62 63 init 1 64 6: 10 65 ---- 66 5: 1 67 6: 10 68 69 init 1 70 6: 100 71 ---- 72 4: 1 73 5: 10 74 6: 100 75 76 init 1 77 6: 1000 78 ---- 79 3: 1 80 4: 10 81 5: 100 82 6: 1000 83 84 init 1 85 6: 10000 86 ---- 87 2: 1 88 3: 10 89 4: 100 90 5: 1000 91 6: 10000 92 93 init 1 94 6: 100000 95 ---- 96 1: 1 97 2: 10 98 3: 100 99 4: 1000 100 5: 10000 101 6: 100000 102 103 # Smoothing multiplier is 104 # `(size(Lbottom)/size(Lbase))^(1/(Lbottom-Lbase)) = (1000000/1)^(1/(6-1)) = 1000000^(1/5)` 105 # 106 # size(L1) = size(Lbase) = 1 107 # size(L2) = size(L1) * 1000000^(1/5) ~= 16 108 # size(L3) = size(L2) * 1000000^(1/5) ~= 251 109 # size(L4) = size(L3) * 1000000^(1/5) ~= 3981 110 # size(L5) = size(L4) * 1000000^(1/5) ~= 63096 111 # size(L6) = size(L5) * 1000000^(1/5) ~= 1000000 112 113 init 1 114 6: 1000000 115 ---- 116 1: 1 117 2: 16 118 3: 251 119 4: 3981 120 5: 63096 121 6: 1000000 122 123 # Smoothing multiplier is 124 # `(size(Lbottom)/size(Lbase))^(Lbottom-Lbase) = (64000000/64)^(1/(6-1)) = 1000000^(1/5)` 125 # 126 # size(L1) = size(Lbase) = 64 127 # size(L2) = size(L1) * 1000000^(1/5) ~= 1014 128 # size(L3) = size(L2) * 1000000^(1/5) ~= 16076 129 # size(L4) = size(L3) * 1000000^(1/5) ~= 254789 130 # size(L5) = size(L4) * 1000000^(1/5) ~= 4038127 131 # size(L6) = size(L5) * 1000000^(1/5) ~= 64000000 132 133 init 64 134 6: 64000000 135 ---- 136 1: 64 137 2: 1014 138 3: 16076 139 4: 254789 140 5: 4038127 141 6: 64000000 142 143 init 1 144 0: 4 145 6: 10 146 ---- 147 5: 1 148 6: 10