disagg: remove sleep in dhandle lock loop

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations
    • 4,950.438
    • SE Foundations - 2025-11-21
    • 3

      Using Parca, I was able to determine why some of our disagg clusters trigger CPU alerts (and it's mostly kernel mode cpu; all the purple bars in the screenshot are kernel mode frames)


      It seems that when we lock a dhandle, we spin instead of blocking waiting for it, and part of that spinning is an inefficient call into sleep(). I wonder if we could protect this call to sleep by including it in Windows builds only, to avoid jumping into kernel mode so often.

              /* FIXME-WT-12037 Use a sleep to work around a Windows-specific scheduling issue. */
              __wt_sleep(0, 1);
      

            Assignee:
            Will Korteland
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: