forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FB8-52: Slowing down transaction log init (facebook#931) (facebook#931)
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
- Loading branch information
1 parent
44a0a3e
commit 528528f
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
mysql-test/suite/sys_vars/r/innodb_txlog_init_rate_basic.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
SET @orig_txlog_init_rate = @@global.innodb_txlog_init_rate; | ||
SELECT @orig_txlog_init_rate; | ||
@orig_txlog_init_rate | ||
134217728 | ||
SET GLOBAL innodb_txlog_init_rate = 500*1024*1024; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
@@global.innodb_txlog_init_rate | ||
524288000 | ||
SET GLOBAL innodb_txlog_init_rate = 0; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
@@global.innodb_txlog_init_rate | ||
0 | ||
SET GLOBAL innodb_txlog_init_rate = -1; | ||
Warnings: | ||
Warning 1292 Truncated incorrect innodb_txlog_init_rate value: '-1' | ||
SELECT @@global.innodb_txlog_init_rate; | ||
@@global.innodb_txlog_init_rate | ||
0 | ||
SET GLOBAL innodb_txlog_init_rate = 12345; | ||
Warnings: | ||
Warning 1292 Truncated incorrect innodb_txlog_init_rate value: '12345' | ||
SELECT @@global.innodb_txlog_init_rate; | ||
@@global.innodb_txlog_init_rate | ||
0 | ||
SET GLOBAL innodb_txlog_init_rate = @orig_txlog_init_rate; |
22 changes: 22 additions & 0 deletions
22
mysql-test/suite/sys_vars/t/innodb_txlog_init_rate_basic.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
SET @orig_txlog_init_rate = @@global.innodb_txlog_init_rate; | ||
|
||
SELECT @orig_txlog_init_rate; | ||
|
||
# 500MB/s | ||
SET GLOBAL innodb_txlog_init_rate = 500*1024*1024; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
|
||
# min value | ||
SET GLOBAL innodb_txlog_init_rate = 0; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
|
||
# invalid value | ||
# too small | ||
SET GLOBAL innodb_txlog_init_rate = -1; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
|
||
# not bound to page size | ||
SET GLOBAL innodb_txlog_init_rate = 12345; | ||
SELECT @@global.innodb_txlog_init_rate; | ||
|
||
SET GLOBAL innodb_txlog_init_rate = @orig_txlog_init_rate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters