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

Keep couchstore DB instances open across writes

    XMLWordPrintable

Details

    Description

      Currently CouchKVStore opens and closed the underlying couchstore file on every call to saveDocs(). Profiling has highlighted that the underlying OS close() call (and to a lesser extent the open() call) are costly - on Linux with XFS there appears to be non-trivial work to
      release various allocated resources - close() takes around 7% of the total flusher runtime.

      To improve this, keep the couchstore Db instance for each vBucket open across saveDocs() calls. This increases KV-Engine's FD usage (potentially 1024 more FDs open at once than before), but should reduce the costs associated with open/close.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-36572
          # Subject Branch Project Status CR V

          Activity

            People

              owend Daniel Owen
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty