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

Add stall-related status variables to thread pool

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • N/A
    • Variables
    • None

    Description

      It might make sense to add some stall-related status variables to the Unix implementation of the thread pool.

      Maybe like:

      • Threadpool_stalled_thread_groups

      This could get incremented if the timer thread detects a stall. Around here:

      https://github.com/MariaDB/server/blob/3503fbbebf90cb0fe63993a66dad9bf97fb74c0a/sql/threadpool_generic.cc#L735

      • Threadpool_throttled_thread_creations

      This could get incremented if the timer thread does not create a new worker thread when a stall is detected because the thread group was still within the throttling interval. Around here:

      https://github.com/MariaDB/server/blob/3503fbbebf90cb0fe63993a66dad9bf97fb74c0a/sql/threadpool_generic.cc#L1025

      • Threadpool_oversubscribed_thread_groups

      This could get incremented every time a thread has to go to sleep because the thread group already has thread_pool_oversubscribe active threads. Around here:

      https://github.com/MariaDB/server/blob/3503fbbebf90cb0fe63993a66dad9bf97fb74c0a/sql/threadpool_generic.cc#L1218

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.