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

Reduce GC overhead

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.4, 0.5
    • None
    • None
    • debian lenny amd64 Java(TM) SE Runtime Environment (build 1.6.0_12-b04)

    Description

      The Concurrent Mark Sweep GC is using about 30% of the cpu during inserts. This is not reported as GC time by jconsole, but can be observed by finding the thread with jstack and watching it via top. This is due to the CMSInitiatingOccupancyFraction=1 setting being passed to the JVM. Setting this to 1 is nonsensical, the default is 68.

      I tested with some runs of stress.py with 200k inserts, and removing CMSInitiatingOccupancyFraction causes the 30% cpu usage to disappear. ParNew GC time was 28-29s. Adding SurvivorRatio=128 and MaxTenuringThreshold=0 drops the GC time to 18-20s.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            brandon.williams Brandon Williams Assign to me
            brandon.williams Brandon Williams
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment