-
Notifications
You must be signed in to change notification settings - Fork 713
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
FB8-52: Slowing down transaction log init #931
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
2897aff
to
0feacfd
Compare
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lth has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update the results for main.all_persisted_variables and re-record the test?
Jira issue: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b ---------- facebook@80ca845 ---------- Summary: This diff added a configurable variable to throttle the write rate of new innodb log file initialization. Default speed is 128MB/second, and setting it to 0 will turn off the throttling. I also changed the default value of innodb_fsync_freq to 1MB to reduce system stalls caused by fsyncing large trunks of file. Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Originally Reviewed By: jtolmer ---------- facebook@0fb428b ---------- Summary: Remove the informational print of transaction log initialization throttling, which turned out quite excessive. We could get the throttle rate from the global variable innodb_txlog_init_rate anyway. Test Plan: jenkins Originally Reviewed By: santoshb
0feacfd
to
9183dd3
Compare
@satya-bodapati has updated the pull request. Re-import the pull request |
@hermanlee done! |
also update the commit message to new format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: 80ca845 Reference Patch: 0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: #931 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: d572c7b
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: 80ca845 Reference Patch: 0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: #931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Test Plan: jenkins Testing command: mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate] With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s) 2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s) 2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 10MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect) 2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB InnoDB: log file write is throttled at 128MB/s InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000 Reviewed By: lth Differential Revision: D13789095 Pulled By: lth fbshipit-source-id: 8c94859
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook/mysql-5.6@80ca845 Reference Patch: facebook/mysql-5.6@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook/mysql-5.6#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook/mysql-5.6@80ca845 Reference Patch: facebook/mysql-5.6@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook/mysql-5.6#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook/mysql-5.6@80ca845 Reference Patch: facebook/mysql-5.6@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook/mysql-5.6#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
Summary: JIRA: https://jira.percona.com/browse/FB8-52 Reference Patch: facebook@80ca845 Reference Patch: facebook@0fb428b Patch introduces new variable 'innodb_txlog_init_rate' to limit the IO rate of InnoDB redo log file initialization. Pull Request resolved: facebook#931 Reviewed By: lloyd Differential Revision: D13789095 Pulled By: lth
JIRA: https://jira.percona.com/browse/FB8-52
Reference Patch: 80ca845
Reference Patch: 0fb428b
Patch introduces new variable 'innodb_txlog_init_rate' to limit
the IO rate of InnoDB redo log file initialization.
Test Plan:
jenkins
Testing command:
mysqld --datadir=/tmp/log_init --skip-grant-tables --skip-networking --socket=socket --innodb-log-file-size=1G --innodb-txlog-init-rate=[rate]
With --innodb-txlog-init-rate=0 (no throttling, 1GB init finished in ~49s)
2015-05-22 16:51:20 4018018 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
2015-05-22 16:52:09 4018018 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
With --innodb-txlog-init-rate=10485760 (10MB/s throttling, 1GB log init finished in ~103s)
2015-05-22 16:55:28 4022136 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB
InnoDB: log file write is throttled at 10MB/s
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
2015-05-22 16:57:11 4022136 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB
InnoDB: log file write is throttled at 10MB/s
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
Without setting the option (use default. 1GB init finished in ~50s. Note the write is already below 128MB/s, so the throttling didn't have any effect)
2015-05-22 17:18:51 4055898 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB
InnoDB: log file write is throttled at 128MB/s
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
2015-05-22 17:19:41 4055898 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB
InnoDB: log file write is throttled at 128MB/s
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000