Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25998

Revisit synchronization in SyncFuture

    XMLWordPrintableJSON

Details

    Description

      While working on HBASE-25984, I noticed some weird frames in the flame graphs around monitor entry exit consuming a lot of CPU cycles (see attached images). Noticed that the synchronization there is too coarse grained and sometimes unnecessary. I did a simple patch that switched to a reentrant lock based synchronization with condition variable rather than a busy wait and that showed 70-80% increased throughput in WAL PE. Seems too good to be true.. (more details in the comments).

      Attachments

        1. monitor-overhead-2.png
          73 kB
          Bharath Vissapragada
        2. monitor-overhead-1.png
          74 kB
          Bharath Vissapragada

        Activity

          People

            bharathv Bharath Vissapragada
            bharathv Bharath Vissapragada
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: