Improve performance of Locker::getLockerInfo

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2024-05-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In performance testing the ServiceEntryPoint benchmark, which basically just calls the ping command, we see that a good chunk of time is spent in getLockerInfo. We spend 3% of the total time in the benchmark inside this function, mostly downstream of CurOp::_sumBlockedTimeTotal(), but in other areas as well.

      See if there are any potential ways to cache info here, or make this algorithmically tighter (do we need to emplace items into a vector then std::sort them?)

       

      Below screenshot is from running hotspot on a locally-derived perf.data. To do this yourself, you must X-forward your Linux workstation.

        1. screenshot-1.png
          111 kB
          Daniel Gomez Ferro
        2. screenshot-2.png
          129 kB
          Daniel Gomez Ferro
        3. Screenshot 2024-05-06 at 2.03.23 PM.png
          373 kB
          Blake Oler

            Assignee:
            Daniel Gomez Ferro
            Reporter:
            Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: