Skip to content

Recovery Mode: Run iteration 1 of the recovered data store to eliminate the skew in the first iteration + sync - #9

Open
ganeles wants to merge 1 commit into
MariaDB:mainfrom
ganeles:fix-first-iteration-restore-asymmetry
Open

Recovery Mode: Run iteration 1 of the recovered data store to eliminate the skew in the first iteration + sync#9
ganeles wants to merge 1 commit into
MariaDB:mainfrom
ganeles:fix-first-iteration-restore-asymmetry

Conversation

@ganeles

@ganeles ganeles commented Aug 19, 2026

Copy link
Copy Markdown

With --database-iteration-mode=restore, iteration 1 ran on the datadir
natively written by the fill, while iterations 2+ ran on a datadir
rewritten by cp during restore. On virtualized storage the restored
copy is served measurably faster, making iteration 1 consistently
14-28% slower on IO-bound workloads.

Fix: after creating the restore image, immediately restore from it so
iteration 1 starts from the same physical state as later iterations,
and sync before DbStart so restore writeback completes while the
database is stopped."

natively written by the fill, while iterations 2+ ran on a datadir
rewritten by cp during restore. On virtualized storage the restored
copy is served measurably faster, making iteration 1 consistently
14-28% slower on IO-bound workloads.

Fix: after creating the restore image, immediately restore from it so
iteration 1 starts from the same physical state as later iterations,
and sync before DbStart so restore writeback completes while the
database is stopped."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants