Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17798

Possible performance regression using SSL

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Security
    • Windows 2012 R2 in a hyper-V VM, 2 vCPU, 4GB ram, 128GB HDD. host machine is Intel i7 4970k, 32GB ram, 4 physical hard drives.
    • Windows
    • Hide

      hammer.mongo insert workload, but may need to run for a few hours to let the insert performance stabilize, the initial difference may be up to 40% and they gradually converge.

      Also it's best to set the CPU affinity to 1 or 2 cores if running on AWS, otherwise network would be the bottleneck:

      mkdir hammer
      cd hammer
      wget --no-check-certificate https://raw.githubusercontent.com/rzh/hammer.mongo/master/scripts/bootstrap.sh -O - | bash
      it will download everything you need.. to run insert traffic.. just edit simple_insert.sh and change HT_SERVER_URL to the location of the server

      Show
      hammer.mongo insert workload, but may need to run for a few hours to let the insert performance stabilize, the initial difference may be up to 40% and they gradually converge. Also it's best to set the CPU affinity to 1 or 2 cores if running on AWS, otherwise network would be the bottleneck: mkdir hammer cd hammer wget --no-check-certificate https://raw.githubusercontent.com/rzh/hammer.mongo/master/scripts/bootstrap.sh -O - | bash it will download everything you need.. to run insert traffic.. just edit simple_insert.sh and change HT_SERVER_URL to the location of the server

    Description

      Running an insert only workload on two identical machines shows an 18% performance hit with SSL enabled over an 11h run, as indicated by the number of bytes written and the number of inserts reported by the client.

      There's also a 17% increase in the number of private bytes and a small but consistent 5% increase in user time CPU for the SSL enabled version.

      The tests are done on the same physical machine in 2 hyper-V VMs with the client on a third Ubuntu VM, so network is not the bottleneck. All the VMs are also on different physical hard drives.

      detailed windows performance counters and some basic analysis are attached in the excel spreadsheet.

      Attachments

        1. comparison.xlsx
          10.71 MB
        2. hammer_0329233059.log
          4.03 MB
        3. hammer_ssl_0329233017.log
          4.04 MB

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: