Add early exit in update obsolete check for short update chains

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cache and Eviction
    • None
    • Storage Engines
    • None
    • None

      __wt_update_obsolete_check is 1.19% flat CPU on 95read/5update YCSB at 128 threads. It runs on every update, acquires a page spinlock, reads globals, walks the chain — all for nothing when the chain has only one prior entry. Fix: add upd->next->next == NULL to the early exit in __wt_update_serial.

            Assignee:
            Jawwad Asghar
            Reporter:
            Jawwad Asghar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: