Skip to content

Contrib Fake PR : Bug#116716 - Allow Setting Nb Thread for Tablespace Duplicate Check (startup).#15

Draft
jfg956 wants to merge 1 commit into9.1.0_for_fake_prsfrom
9.1.0_bug116716_contrib
Draft

Contrib Fake PR : Bug#116716 - Allow Setting Nb Thread for Tablespace Duplicate Check (startup).#15
jfg956 wants to merge 1 commit into9.1.0_for_fake_prsfrom
9.1.0_bug116716_contrib

Conversation

@jfg956
Copy link
Owner

@jfg956 jfg956 commented Dec 3, 2024

This PR allows setting the number of threads for InnoDB Tablespace Duplicate Check, implementing the feature request Bug #116716 : Allow Setting Nb Thread for Tablespace Duplicate Check (startup).

This is a "Contrib Fake PR". It is there so people can comment on this work in case it needs adjustments. This has been contributed on 2024-12-03 as a patch file in Bug #116716. More about Fake PR in the RFC blog post, section Fake PRs and my Way of Working on MySQL Contributions.

This PR merges on 9.1.0, and the patch file also applies on 8.4.3 and 8.0.40.

For allowing setting the number of threads for InnoDB Tablespace Duplicate Check, this PR introduces a new global variable : innodb_tablespace_duplicate_check_threads. The default value is -1, which means the already implemented heuristic is used for setting the number of threads. A value of 0 to MAX VAL overrides the number of threads of the heuristic.

Ideally, in addition to being included in a next Innovation Release, this would be back ported in 8.4 and 8.0. The default value of the global variable introduced by this change is backward compatible with 8.4 and 8.0, so I think this change does not introduce any compatibility problems. And as this change introduces a potential performance improvement making startup faster, I think there is value in back-porting it.

Examples on how this PR is useful was added in Bug #116716.

I also blogged about this: InnoDB Tablespace Duplicate Check Threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant