Skip to content

Conversation

liuchangyan
Copy link

@liuchangyan liuchangyan commented Aug 24, 2023

Signed-off-by: Teresaliu changyan.liu@intel.com
Signed-off-by: Lin Yang lin.a.yang@intel.com

Description

When using sysbench to benchmark mysql's performance, we found MySQL has some scalability issues as the the number of threads increase in select random ranges/points senarios; more details is there: https://bugs.mysql.com/bug.php?id=111594

After investigation, we located that this problem is a false sharing problem, and this kind cacheline contention problem could be reduced by adding code pading to separate variables in the one cacheline.

Conclusion

After adding pading, the benchmark results and the performance improvement ratio are as shown in the figure below:
image
image

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@liuchangyan
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-admin
Copy link

Hi @liuchangyan
The contribution code in this PR (9ba6091 )was submitted directly to bug
https://bugs.mysql.com/bug.php?id=111594 (see https://bugs.mysql.com/file.php?id=32551&bug_id=111594&text=1)
so there is n need to submit it again. As such,I am closing the PR.

Thanks for contributing to MySQL .
==Omer

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.

3 participants