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

InnoDB read-ahead may cause page writes

    XMLWordPrintable

Details

    Description

      The following stack trace could cause reduced performance in cases when the speculative read-ahead is futile, and some useful pages are evicted as a result:

      10.5

      buf_LRU_get_free_block
      buf_page_init_for_read
      buf_read_page_low
      buf_read_page_background
      btr_cur_prefetch_siblings
      

      It could be more useful to only attempt read-ahead if a free block is available in the buffer pool without evicting any page that:

      1. is not marked as freed, or
      2. is not marked as dirty

      Furthermore, we should probably avoid read-ahead altogether for temporary tables.

      Attachments

        Issue Links

          Activity

            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.