github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/compaction_picker_target_level (about)

     1  pick 1
     2  ----
     3  0: 0.0
     4  
     5  pick 1
     6  6: 1
     7  ----
     8  0: 0.0
     9  
    10  pick 1
    11  6: 1000000
    12  ----
    13  0: 0.0
    14  
    15  pick 1
    16  5: 1
    17  6: 10
    18  ----
    19  5: 1.0
    20  
    21  pick 1
    22  5: 2
    23  6: 10
    24  ----
    25  5: 2.0
    26  
    27  # Smoothing multiplier is
    28  # `(size(Lbottom)/size(Lbase))^(Lbottom-Lbase) = (30/1)^(1/(6-4)) = 30^(1/2)`
    29  #
    30  # size(L4) = size(Lbase) = 1
    31  # size(L5) = size(L4) * 30^(1/2) ~= 5
    32  # size(L6) = size(L5) * 30^(1/2) = 30
    33  
    34  pick 1
    35  5: 2
    36  6: 30
    37  ----
    38  5: 0.4
    39  
    40  pick 1
    41  4: 2
    42  5: 2
    43  6: 100
    44  ----
    45  4: 2.0
    46  
    47  pick 1
    48  4: 1
    49  5: 2
    50  6: 100
    51  ----
    52  4: 1.0
    53  
    54  pick 1
    55  4: 1
    56  5: 11
    57  6: 100
    58  ----
    59  5: 1.1
    60  
    61  pick 1
    62  4: 2
    63  5: 11
    64  6: 100
    65  ----
    66  4: 2.0
    67  
    68  pick 1
    69  0: 4
    70  ----
    71  0: 1.0
    72  
    73  pick 1
    74  0: 5
    75  ----
    76  0: 1.2
    77  
    78  pick 1
    79  0: 5
    80  5: 2
    81  6: 10
    82  ----
    83  5: 2.0