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

Improve serializing off-heap cache by not using finalizers

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
    • Normal
    • Resolution: Fixed
    • 1.1.1
    • None
    • None

    Description

      We have a cluster that takes alot of reads and we have some issues with the off-heap caching, seeing several G of Finalizer objects on the heap

      My conclusion is that the finalizer thread is too slow to run the finalize method on the FreeableMemory (and Memory) objects.

      Simply removing the finalize() methods improves performance alot (using finalizers is 50% slower in my micro benchmarks) and does not leak memory during "normal" use as far as i can see

      im not sure about the implications for other use cases though

      Attachments

        Activity

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

          People

            marcuse Marcus Eriksson Assign to me
            marcuse Marcus Eriksson
            Marcus Eriksson
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment