Bug #95604 Add an option to sort dumped InnoDB buffer pool pages by MRU
Submitted: 3 Jun 2019 0:25 Modified: 5 Jun 2019 12:38
Reporter: Yoseph Phillips Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S4 (Feature request)
Version:5.7.24 EE OS:Any
Assigned to: CPU Architecture:Any

[3 Jun 2019 0:25] Yoseph Phillips
Description:
Add an option to sort dumped InnoDB buffer pool pages by MRU.

Currently when dumping pages MySQL is sorting InnoDB buffer pool pages in order to reduce the number of seeks when the pages are loaded again.

We have an Enterprise Edition client where it is taking an exceptionally long time to reload the InnoDB buffer pool pages when MySQL is restarted. The most important pages (the ones that were most recently used) might not be loaded for many hours following a restart.

We are requesting an option so that DBAs can decide if they want these pages to be sorted by MRU instead.
That way the most important pages can be loaded first so that users can start using the system almost immediately while the LRU pages are still loading.

How to repeat:
Load a huge number of pages into the InnoDB buffer pool pages.
Perform queries which would take a long time to perform when the pages have not already been loaded into the InnoDB buffer pool pages.
Restart MySQL.
Repeat those same queries that you were doing right before restarting MySQL.

Suggested fix:
Add an option so that DBAs can decide if they want these pages to be sorted by MRU instead.
[5 Jun 2019 12:38] MySQL Verification Team
Hi Mr. Phillips.

Thank you for your bug report.

I agree with you that this feature could be useful.

Verified as reported.