Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15560 TinyLFU-based BlockCache
  3. HBASE-22114

Port HBASE-15560 (TinyLFU-based BlockCache) to branch-1

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      HBASE-15560 introduces the TinyLFU cache policy for the blockcache.

      W-TinyLFU (research paper) records the frequency in a counting sketch, ages periodically by halving the counters, and orders entries by SLRU. An entry is discarded by comparing the frequency of the new arrival (candidate) to the SLRU's victim, and keeping the one with the highest frequency. This allows the operations to be performed in O(1) time and, though the use of a compact sketch, a much larger history is retained beyond the current working set. In a variety of real world traces the policy had near optimal hit rates.

      The implementation of HBASE-15560 uses several Java 8 idioms, depends on JRE 8+ type Optional, and has dependencies on libraries compiled with Java 8+ bytecode. It could be backported to branch-1 but must be made optional both at compile time and runtime, enabled by the 'build-with-jdk8' build profile.

      The TinyLFU policy must go into its own build module.

      The blockcache must be modified to load L1 implementation/policy dynamically at startup by reflection if the policy is "TinyLFU"

      Attachments

        1. HBASE-22114-branch-1.patch
          71 kB
          Andrew Kyle Purtell
        2. HBASE-22114-branch-1.patch
          71 kB
          Andrew Kyle Purtell
        3. HBASE-22114-branch-1.patch
          71 kB
          Andrew Kyle Purtell

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apurtell Andrew Kyle Purtell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: