Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12376

Optimize history store size limiting code

    • Storage Engines
    • 3
    • 2024-02-20_A_near-death_puffin

      I was analyzing some performance data from a YCSB workload and noticed the following callstack taking non-trivial time during reconciliation.

      __wt_block_manager_named_size
      __hs_insert_updates
      __rec_write_wraup
      __wt_reconcile
      __wt_evict
      

      That corresponds to this check related to allowing a maximum history store size to be defined (which is an optional configuration option history_store=(file_max)) - a quick skim of current MongoDB indicates that they don't use the configuration option.

      It should be easy to change the code so that it only retrieves the file size if history store size enforcement is in place.

            Assignee:
            jasmine.bi@mongodb.com Jasmine Bi
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: