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

Make the global #define IO_SIZE configurable for easier performance testing

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Trivial
    • Resolution: Unresolved
    • None
    • None

    Description

      Making mariadb's IO_SIZE configurable enables more straight-forward investigation of the performance implications of having an IO_SIZE which is different than the memory page size.

      The default IO_SIZE of 4096 as defined in include/my_global.h and alsoin libmariadb's include/ma_global.h matches to the memory page size of most systems. However, Larger page sizes are widely supported, called "huge pages" in Linux, "superpages" in FreeBSD, and "large pages" in MS Windows.

      On POSIX systems, obtaining the page size can be done via:

        page_size= sysconf(_SC_PAGESIZE);
      

      On Windows:

        SYSTEM_INFO si;
        GetSystemInfo(&si);
        page_size= si.dwPageSize;
      

      Note that libmariadb's include/ma_global.h should also be adjusted to avoid a double #define of IO_SIZE and to ensure they are defined to be the same.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Eric_Herman Eric Herman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.