Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 2.1 beta1
    • Component/s: None
    • Labels:

      Description

      Brian Aker pointed out a while ago that allowing multiple threads to modify the commitlog simultaneously (reserving space for each with a CAS first, the way we do in the SlabAllocator.Region.allocate) can improve performance, since you're not bottlenecking on a single thread to do all the copying and CRC computation.

      Now that we use mmap'd CommitLog segments (CASSANDRA-3411) this becomes doable.

      (moved from CASSANDRA-622, which was getting a bit muddled.)

        Attachments

        1. 0001-CASSANDRA-3578.patch
          91 kB
          Michaël Figuière
        2. 3578-logging-v2.txt
          4 kB
          Jonathan Ellis
        3. 3578-logging-v3.txt
          4 kB
          Jonathan Ellis
        4. ComitlogStress.java
          3 kB
          Vijay
        5. Current-CL.png
          189 kB
          Vijay
        6. latency.svg
          467 kB
          Benedict
        7. Multi-Threded-CL.png
          173 kB
          Vijay
        8. oprate.svg
          7 kB
          Benedict
        9. parallel_commit_log_2.patch
          40 kB
          Piotr Kołaczkowski
        10. TestEA.java
          2 kB
          Benedict

          Issue Links

            Activity

              People

              • Assignee:
                benedict Benedict
                Reporter:
                jbellis Jonathan Ellis
                Reviewer:
                Jonathan Ellis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: