github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/objstorage/objstorageprovider/testdata/provider/shared_readahead (about)

     1  open p1 1
     2  ----
     3  <local fs> mkdir-all: p1 0755
     4  <local fs> open-dir: p1
     5  <local fs> open-dir: p1
     6  <local fs> create: p1/REMOTE-OBJ-CATALOG-000001
     7  <local fs> sync: p1/REMOTE-OBJ-CATALOG-000001
     8  <local fs> create: p1/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001
     9  <local fs> close: p1/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001
    10  <local fs> sync: p1
    11  <local fs> sync: p1/REMOTE-OBJ-CATALOG-000001
    12  
    13  create 1 shared 1 2000000
    14  ----
    15  <remote> create object "61a6-1-000001.sst"
    16  <remote> close writer for "61a6-1-000001.sst" after 2000000 bytes
    17  <remote> create object "61a6-1-000001.sst.ref.1.000001"
    18  <remote> close writer for "61a6-1-000001.sst.ref.1.000001" after 0 bytes
    19  
    20  # We should be seeing larger and larger reads. But the last read should be
    21  # capped to the object size.
    22  read 1
    23  0 1000
    24  1000 15000
    25  16000 30000
    26  46000 10000
    27  56000 50000
    28  106000 30000
    29  150000 20000
    30  180000 10000
    31  210000 30000
    32  300000 10000
    33  500000 1000
    34  800000 1000
    35  1500000 10000
    36  ----
    37  <remote> size of object "61a6-1-000001.sst.ref.1.000001": 0
    38  <remote> create reader for object "61a6-1-000001.sst": 2000000 bytes
    39  size: 2000000
    40  <remote> read object "61a6-1-000001.sst" at 0 (length 1000)
    41  0 1000: ok (salt 1)
    42  <remote> read object "61a6-1-000001.sst" at 1000 (length 15000)
    43  1000 15000: ok (salt 1)
    44  <remote> read object "61a6-1-000001.sst" at 16000 (length 65536)
    45  16000 30000: ok (salt 1)
    46  46000 10000: ok (salt 1)
    47  <remote> read object "61a6-1-000001.sst" at 81536 (length 105536)
    48  56000 50000: ok (salt 1)
    49  106000 30000: ok (salt 1)
    50  150000 20000: ok (salt 1)
    51  <remote> read object "61a6-1-000001.sst" at 187072 (length 255072)
    52  180000 10000: ok (salt 1)
    53  210000 30000: ok (salt 1)
    54  300000 10000: ok (salt 1)
    55  <remote> read object "61a6-1-000001.sst" at 500000 (length 524288)
    56  500000 1000: ok (salt 1)
    57  800000 1000: ok (salt 1)
    58  <remote> read object "61a6-1-000001.sst" at 1500000 (length 500000)
    59  1500000 10000: ok (salt 1)
    60  <remote> close reader for "61a6-1-000001.sst"
    61  
    62  # When reading for a compaction, we should be doing large reads from the start.
    63  read 1 for-compaction
    64  0 1000
    65  1000 15000
    66  16000 30000
    67  46000 10000
    68  56000 50000
    69  106000 30000
    70  150000 20000
    71  180000 10000
    72  210000 30000
    73  ----
    74  <remote> size of object "61a6-1-000001.sst.ref.1.000001": 0
    75  <remote> create reader for object "61a6-1-000001.sst": 2000000 bytes
    76  size: 2000000
    77  <remote> read object "61a6-1-000001.sst" at 0 (length 1048576)
    78  0 1000: ok (salt 1)
    79  1000 15000: ok (salt 1)
    80  16000 30000: ok (salt 1)
    81  46000 10000: ok (salt 1)
    82  56000 50000: ok (salt 1)
    83  106000 30000: ok (salt 1)
    84  150000 20000: ok (salt 1)
    85  180000 10000: ok (salt 1)
    86  210000 30000: ok (salt 1)
    87  <remote> close reader for "61a6-1-000001.sst"