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

innodb_fast_shutdown=0 can be unnecessarily slow

Details

    Description

      Now that MDEV-16264 replaced the InnoDB purge threads with tasks, it should be possible to increase the purge effort during a slow shutdown (while innodb_fast_shutdown=0 is in effect). Currently, we are using the fixed amount of innodb_purge_threads also during shutdown, even if the server were mostly idle.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            Thank you wlad

            danblack Daniel Black added a comment - Thank you wlad

            Apparently, increasing threads did not seem to help much due to contention on the dictionary mutex, but maybe this will help in the future

            wlad Vladislav Vaintroub added a comment - Apparently, increasing threads did not seem to help much due to contention on the dictionary mutex, but maybe this will help in the future

            The dict_sys.mutex would be removed in MDEV-24258. That should allow concurrent execution of table lookup in multiple threads, such as those executing purge worker tasks.

            marko Marko Mäkelä added a comment - The dict_sys.mutex would be removed in MDEV-24258 . That should allow concurrent execution of table lookup in multiple threads, such as those executing purge worker tasks.

            It looks like MDEV-24258 may cause increased lower-level conflicts between purge workers, because dict_sys.mutex will no longer act as a ‘concurrency throttle’. Some performance regressions were observed before configuring innodb_purge_threads=1.

            marko Marko Mäkelä added a comment - It looks like MDEV-24258 may cause increased lower-level conflicts between purge workers, because dict_sys.mutex will no longer act as a ‘concurrency throttle’. Some performance regressions were observed before configuring innodb_purge_threads=1 .

            People

              wlad Vladislav Vaintroub
              marko Marko Mäkelä
              Votes:
              1 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.