ExportXMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines, Storage Engines - Transactions
    • 97.21
    • None
    • None

      When a writer releases a WT_RWLOCK, all writers waiting for it wake up. Only one of them gets the lock, and the rest go back to sleep. Waiting writers also wake every 10 ms.

      This is not visible now because the existing WT_RWLOCK locks are held for write only briefly, so few writers wait on them at once. It becomes visible with WT-18928, which moves the schema lock to WT_RWLOCK. The schema lock is held for a whole table create, and many threads can wait for it. In a test where 64 threads create tables, system CPU time goes from 36 s to 104 s and context switches from 0.68M to 11.2M, compared with develop.

            Assignee:
            Unassigned
            Reporter:
            Mikhail Sotnikov (EXT)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: