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

[CBM] Optimise how nonces are generated for encryption

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • backlog
    • 7.6.0
    • tools
    • None
    • 0

    Description

      What is the problem?

      Profiling shows the majority of the CPU time increase when taking an encrypted backup is from rand.Read when generating a nonce. If we improve this the throughput should improve

      What is the solution?

      A couple of ideas:

      • Rather than generating a single nonce at a time we could generate a bunch and advance through the list. Once there were none left we could synchronously generate more
      • Generate nonces asynchronously on another thread. Allow a buffer so ideally there is always one ready

      Attachments

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

        Activity

          People

            owend Daniel Owen
            Matt.Hall Matt Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty