Skip to content

Add new scheduling algorithm for reducing tail latencies #105

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

Closed
wants to merge 4 commits into from

Conversation

sensssz
Copy link

@sensssz sensssz commented Oct 12, 2016

This branch introduces a new scheduling algorithm (Variance-Aware-Transaction-Scheduling, VATS) for the record lock manager of InnoDB and XtraDB. Instead of using First-Come-First-Served (FCFS), the newly introduced algorithm uses an Eldest-Transaction-First (ETF) heuristic, which prefers older transactions over new ones. A configuration parameter (innodb_lock_schedule_algorithm) is introduced for users to choose between VATS and FCFS (the default one). We've extensively tested this algorithm in many workloads. The algorithm is very simple, and the changes are very local, but it significantly improves performance (in terms of average latency and throughput) and predictability (in terms of reduction of tail and quantile latencies) For more details, please refer to this paper http://arxiv.org/abs/1602.01871

The new code of the whole pull request, including one or several files that are either new files or modified ones, is contributed under the BSD-new license.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@sensssz
Copy link
Author

sensssz commented Oct 12, 2016

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

@grooverdan
Copy link

Nice paper and patch. I'm wondering when the VProfiler will be available on http://github.com/mozafari/vprofiler?

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=83373 for updates.
Thanks

dbussink pushed a commit to planetscale/mysql-server that referenced this pull request Mar 6, 2024
* Support new Vitess internal table name format

* Update sql/table.cc



* Update sql/table.cc



* Update sql/table.cc



* optimize regexp search



* match start of name



---------

Signed-off-by: Shlomi Noach <[email protected]>
Co-authored-by: Patrick Reynolds <[email protected]>
dbussink pushed a commit to planetscale/mysql-server that referenced this pull request May 21, 2024
* Support new Vitess internal table name format

* Update sql/table.cc



* Update sql/table.cc



* Update sql/table.cc



* optimize regexp search



* match start of name



---------

Signed-off-by: Shlomi Noach <[email protected]>
Co-authored-by: Patrick Reynolds <[email protected]>
dbussink pushed a commit to planetscale/mysql-server that referenced this pull request May 21, 2024
* Support new Vitess internal table name format

* Update sql/table.cc



* Update sql/table.cc



* Update sql/table.cc



* optimize regexp search



* match start of name



---------

Signed-off-by: Shlomi Noach <[email protected]>
Co-authored-by: Patrick Reynolds <[email protected]>
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