ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0, 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: Checkpoints
    • None
    • Storage Engines, Storage Engines - Persistence
    • 0.115
    • StorEng - Defined Pipeline
    • None

      The checkpoint thread's own time in a checkpoint is unattributed. checkpoint_sync_rec_pct reports reconciliation time summed across the parallel worker threads, so it can exceed 100% and cannot be used to derive the checkpoint thread's wall-clock breakdown. Deriving the walk as sync - rec - wait is therefore invalid: once the workers together spend more than the checkpoint thread's wall time, the subtraction is negative and the result clamps to zero.

      Two gaps this ticket fills:

      • Tree walk: the time spent in _sync_dup_walk and _wt_tree_walk_custom_skip is not measured.
      • Parallel worker wait: __wt_checkpoint_parallel_finish is called at every internal page and at the end of every tree, blocking until all pushed work completes. That wait is invisible today, and it is where most of the checkpoint thread's time goes.

      Add two connection-level microsecond timers, measured on the checkpoint thread, reset at the start of each checkpoint and reported with the existing checkpoint statistics: checkpoint_walk_time and checkpoint_parallel_wait_time. Both are no_clear,no_scale so they describe the most recent checkpoint and compare directly with checkpoint_tree_duration. Instrumentation only: no change to checkpoint behaviour, queueing or thread counts.

      Add a test that asserts both timers are populated when parallel workers reconcile pages, and that together they fit inside checkpoint_tree_duration.

      Related: WT-18482 tracks the queue-drain behaviour this measures. The eviction drain before each tree is measured separately by WT-12541.

            Assignee:
            Etienne Petrel
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: