Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7866

TcpCommunicationSpi metrics causes cache operations slowdown

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.4
    • 2.4
    • general
    • None

    Description

      Extended TCP metrics were added as a part of IGNITE-6868 ticket. Unfortunately, they causes ~5-10% performance drop for cache operations when working in in-memory mode. Causes:
      1) Contention on shared data structures (LongAdder, CMH)
      2) A lot of string comparisons because we use class names to track particulat message types

      Suggested fix:
      1) Move all processing to NIO threads
      2) Introcduce thread-local state and update it from NIO threads
      3) Metrics readers should merge state from all NIO threads
      4) User Message type ID instead of class names
      5) When returning final result we should use Class.getName() instead of Class.getSimpleName()

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vozerov Vladimir Ozerov
            vozerov Vladimir Ozerov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment