github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/objstorage/objstorageprovider/testdata/provider/local_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 local 1 2000000
    14  ----
    15  <local fs> create: p1/000001.sst
    16  <local fs> sync-data: p1/000001.sst
    17  <local fs> sync-data: p1/000001.sst
    18  <local fs> close: p1/000001.sst
    19  
    20  # We should see prefetch calls, and eventually a reopen
    21  # (with sequential reads option).
    22  read 1
    23  0 1000
    24  1000 15000
    25  16000 30000
    26  46000 10000
    27  56000 50000
    28  106000 30000
    29  140000 80000
    30  ----
    31  <local fs> open: p1/000001.sst
    32  size: 2000000
    33  <local fs> read-at(0, 1000): p1/000001.sst
    34  0 1000: ok (salt 1)
    35  <local fs> read-at(1000, 15000): p1/000001.sst
    36  1000 15000: ok (salt 1)
    37  <local fs> prefetch(16000, 65536): p1/000001.sst
    38  <local fs> read-at(16000, 30000): p1/000001.sst
    39  16000 30000: ok (salt 1)
    40  <local fs> read-at(46000, 10000): p1/000001.sst
    41  46000 10000: ok (salt 1)
    42  <local fs> prefetch(56000, 131072): p1/000001.sst
    43  <local fs> read-at(56000, 50000): p1/000001.sst
    44  56000 50000: ok (salt 1)
    45  <local fs> read-at(106000, 30000): p1/000001.sst
    46  106000 30000: ok (salt 1)
    47  <local fs> open: p1/000001.sst
    48  <local fs> read-at(140000, 80000): p1/000001.sst
    49  140000 80000: ok (salt 1)
    50  <local fs> close: p1/000001.sst
    51  <local fs> close: p1/000001.sst