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

Excessive mutex contention in DeadlockChecker::check_and_resolve()

Details

    Description

      The function DeadlockChecker::check_and_resolve() is being executed while continuously holding lock_sys.mutex. Moving the deadlock detection to lock_wait() (which was refactored in MDEV-24671) will allow the check to release lock_sys.mutex between search iterations.

      It may also be possible to avoid holding lock_sys.mutex altogether, and instead only use lock_sys.wait_mutex and various trx_t::mutex.

      Attachments

        Issue Links

          Activity

            The tree bb-10.6-MDEV-24731 1fa2447ddb19e48bb66acd7a057a90fe52351f0d behaved well in RQG testing.
            

            mleich Matthias Leich added a comment - The tree bb-10.6-MDEV-24731 1fa2447ddb19e48bb66acd7a057a90fe52351f0d behaved well in RQG testing.

            Thank you, mleich! The branch included more changes than just this one. Most of the extra changes were for MDEV-24738, which will need some more work.

            marko Marko Mäkelä added a comment - Thank you, mleich ! The branch included more changes than just this one. Most of the extra changes were for MDEV-24738 , which will need some more work.

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              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.