Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34994

Reduce CPU load due to unnecessary accept() calls

    XMLWordPrintable

Details

    Description

      Each time a listener socket becomes ready, MariaDB calls accept() ten times (MAX_ACCEPT_RETRY), even if all but the first one return EAGAIN because there are no more connections.
      This causes unnecessary CPU usage - on our server, the CPU load of that thread, which does nothing but accept(), saturates one CPU core by ~45%.
      The loop should stop after the first EAGAIN.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            maxk Max Kellermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.