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

LRUItr::start(): fix inverted reset condition

    XMLWordPrintable

Details

    • Related to performance
    • Hide
      Fix LRU scan reset condition that lowered eviction probability under pressure.
      Port of percona/percona-server@dc344fba7e3d272ac18e8d6589b37c678f1e1ad5 by Paweł Olchawa (PS-11446).
      Show
      Fix LRU scan reset condition that lowered eviction probability under pressure. Port of percona/percona-server@dc344fba7e3d272ac18e8d6589b37c678f1e1ad5 by Paweł Olchawa (PS-11446).
    • Q4/2026 Server Maintenance

    Description

      Port: https://github.com/percona/percona-server/commit/dc344fba7e3d272ac18e8d6589b37c678f1e1ad5

      See: https://perconadev.atlassian.net/browse/PS-11446

      This bug causes the LRU scan to start more likely from the LRU tail (oldest-old element), rather than resuming from the point in the old-sublist where the scan previously stopped.
      Fixing this will ease scanning progress in the old-sublist, with potential benefits for page evictions when threads are synchronously executing buf_LRU_scan_and_free_block() from buf_LRU_get_free_block() because buf_pool.free list is empty and buf_pool.try_LRU_scan is enabled.

      Attachments

        Issue Links

          Activity

            People

              alessandro.vetere Alessandro Vetere
              alessandro.vetere Alessandro Vetere
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.25d
                  0.25d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.5h Time Not Required
                  0.5h

                  Git Integration

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