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

tpool - switch off maintenance timer when not needed

    XMLWordPrintable

Details

    Description

      Reported by monty:
      The maintenance timer is there to prevent deadlocks, i.e create additional threads when tpool does not make progress. It is only rarely needed, but it still wakes up every 400 milliseconds.
      It could be switched off, or frequency lowered, when server is idle.

      Update April 17 2024. It is not possible to switch that timer entirely OFF, attempts to do this are deadlock prone (mostly due to mysys thr_timer, which holds global lock for entire duration of the callback). If we ever try out luck, then with another timer implementation, not mysys.
      However switch between longer and shorter timer periods are still possible, so this path will be taken

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              wlad Vladislav Vaintroub
              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.