Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-13574

Lock contentions by small filemgr-related functions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • techdebt-backlog
    • techdebt-backlog
    • forestdb
    • Security Level: Public
    • None
    • ForestDB: Oct 26 - Nov 13

    Description

      After we partition the block cache into multiple shards, a spinlock 'file->lock' becomes a major bottleneck under multi-threaded workloads.

      ForestDB's readers frequently call below internal small functions which grab file->lock and incur lock contentions:

      filemgr_is_writable()
      filemgr_get_pos()
      filemgr_get_file_status()
      filemgr_dirty_root_exist()
      filemgr_get_header_bid()

      We need to use atomic variables to eliminate lock contentions.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jung-sang Jung-Sang Ahn (Inactive)
            jung-sang Jung-Sang Ahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty