Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9468

Improvements to BufferPool

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Fix Version/s: 4.x
    • Component/s: Legacy/Core
    • Labels:
      None

      Description

      Following up from CASSANDRA-8897, there are further improvements that can be made to the BufferPool:

      1. The common code paths can be made non-atomic.
      2. The chunk pool can be turned into a Stack, instead of a Queue, to improve the likelihood of cache presence
      3. The chunk pool can be made processor-local, using e.g. https://github.com/OpenHFT/Java-Thread-Affinity
      4. We can support smaller allocations by creating micro-chunks within each local pool, by allocating a single unit from the current chunk (or multiple units if we're about to discard a chunk that is not fully utilised).
        • It should be possible to generalise this approach to make the entire allocation stack tiered, so that whenever you want a new chunk you go to the parent chunk that is an order of magnitude larger, and allocate a small slice (which you convert into a Chunk). Slices below a certain size can be taken exclusive ownership of, and above a certain size they remain shared.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                benedict Benedict Elliott Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: