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

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

    Details

    • Type: Task
    • Status: Stalled
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            this had for some reason been assigned to me. maybe it's done already.

            Show
            ratzpo Rasmus Johansson added a comment - this had for some reason been assigned to me. maybe it's done already.

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d