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

Optimize is_file_on_ssd() to speedup opening tablespaces on Windows

    XMLWordPrintable

Details

    Description

      is_file_on_ssd() on Windows uses a cache to avoid repeated checks whether a given volume is on SSD.

      However, it still uses GetVolumePathName() to retrieve volume for any given file.
      GetVolumePathName() appears to be expensive, procmon shows that internally it opens every directory in the hierarchy, probably to check whether directory is a symlink.

      This can be improved by using volume serial ID as cache key instead, it is cheap to retrieve it for an open file.

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.