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

Improving performance of HeapMemoryManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1, 1.1.0, 1.1.1, 2.0.0
    • 1.2.0, 1.3.0, 2.0.0
    • regionserver
    • None

    Description

      I am trying to improve the performance of DefaultHeapMemoryTuner by introducing some more checks. The current checks under which the DefaultHeapMemoryTuner works are very rare so I am trying to weaken these checks to improve its performance.

      Check current memstore size and current block cache size. For say if we are using less than 50% of currently available block cache size we say block cache is sufficient and same for memstore. This check will be very effective when server is either load heavy or write heavy. Earlier version just waited for number of evictions / number of flushes to be zero which are very rare.
      Otherwise based on percent change in number of cache misses and number of flushes we increase / decrease memory provided for caching / memstore. After doing so, on next call of HeapMemoryTuner we verify that last change has indeed decreased number of evictions / flush either of which it was expected to do. We also check that it does not make the other (evictions / flush) increase much. I am doing this analysis by comparing percent change (which is basically nothing but normalized derivative) of number of evictions and number of flushes during last two periods. The main motive for doing this was that if we have random reads then we will be having a lot of cache misses. But even after increasing block cache we wont be able to decrease number of cache misses and we will revert back and eventually we will not waste memory on block caches. This will also help us ignore random short term spikes in reads / writes. I have also tried to take care not to tune memory if do do not have enough hints as unnecessary tuning my slow down the system.

      Attachments

        1. HBASE-13876.patch
          16 kB
          Abhilash
        2. HBASE-13876-v2.patch
          23 kB
          Abhilash
        3. HBASE-13876-v3.patch
          24 kB
          Abhilash
        4. HBASE-13876-v4.patch
          26 kB
          Abhilash
        5. HBASE-13876-v5.patch
          33 kB
          Abhilash
        6. HBASE-13876-v6.patch
          36 kB
          Abhilash
        7. HBASE-13876-v7.patch
          49 kB
          Abhilash

        Issue Links

          Activity

            People

              abhilak Abhilash
              abhilak Abhilash
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: