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

Reduce the user space per-connection buffer size

    XMLWordPrintable

Details

    • 0

    Description

      The connection will only start executing new commands if the per-connection user space buffer is less than 40MB. There wasn't much work behind picking the limit (apart that it allows for retrieval of two documents of our max size).

      On the bright side documents larger than 4k may be accounted for memory-wise in the resident size for the underlying engine (as we keep a reference to it in this case); unless we need to inflate the document for some reason (to strip off xattrs for instance). In that case we'll allocate additional memory for that.

      We should probably reduce this user space buffer size limit to 1MB; which would allow ~256 operations on documents in the 4k range to be copied into the buffer.

      With 1k of active clients filling their pipes we're up to 1GB in buffer space.

      Attachments

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

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty