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

Threadpool - make timer thread sleep longer if there is no client activity.

    XMLWordPrintable

Details

    • Task
    • Status: Stalled (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Currently, with threadpool on Unix, timer thread that checks and resolves stalls wakes up every threadpool_stall_limit milliseconds. This might be unnecessary on desktops/laptops and consume some CPU or even prevent machines from going to sleep mode, in case there is no client activity. We need to:

      • detect the condition "no client activity"
      • Put timer thread into the long sleep
      • wake timer when the first client s active again.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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