Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trx sys mutex优化方案简化 #45

Closed
zwang28 opened this issue Apr 12, 2021 · 0 comments · Fixed by #50
Closed

trx sys mutex优化方案简化 #45

zwang28 opened this issue Apr 12, 2021 · 0 comments · Fixed by #50

Comments

@zwang28
Copy link

zwang28 commented Apr 12, 2021

在Trx-sys->mutex保护的临界区中各类操作中,我们通过profiling识别出两个主要耗时操作:rw_trx_set.insert和rw_trx_set.erase。
我们采用无锁哈希对象rw_trx_hash,来替代rw_trx_set的功能,从而显著减小Trx-sys->mutex临界区耗时,缓解Trx-sys->mutex竞争。
Issue#8的实现参考了mariadb方案,虽然在sysbench写场景性能显著提升,但在特定场景会带来额外性能瓶颈。所以这里采用简化版本,只优化临界区主要耗时操作,得到写场景性能提升的同时,不会带来额外的性能瓶颈。

@zwang28 zwang28 linked a pull request Apr 12, 2021 that will close this issue
@zwang28 zwang28 removed a link to a pull request Apr 12, 2021
@zwang28 zwang28 linked a pull request Apr 12, 2021 that will close this issue
@zwang28 zwang28 removed a link to a pull request Apr 12, 2021
@zwang28 zwang28 linked a pull request Apr 12, 2021 that will close this issue
@zwang28 zwang28 removed a link to a pull request Apr 13, 2021
@zwang28 zwang28 linked a pull request Apr 14, 2021 that will close this issue
@zwang28 zwang28 closed this as completed Apr 21, 2021
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 a pull request may close this issue.

1 participant