Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9380

Replace sleep()s from Nio.SslEngine replace with yields

    XMLWordPrintableJSON

    Details

      Description

      We noticed a 4-5x increase in the worst-case P2P send latency (most notably sendReplication) in 1.12 vs 1.8. Further analysis showed that the increase in sendReplicationTime is related to how long it takes to create the sender connection. More specifically, all the time spent creating the sender is in the handshake. Experiments with various sleep durations in NioSslEngine.handshake() method showed that this issue can be fixed by replacing both sleeps handshake() method with Thread.yield() calls.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kaslami Kamilla Aslami
                Reporter:
                echobravo Ernest Burghardt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: