lp:~percona-dev/percona-server/fb_changes_auto_lru_dump
- Get this branch:
- bzr branch lp:~percona-dev/percona-server/fb_changes_auto_lru_dump
Branch merges
- Vadim Tkachenko: Needs Fixing
- Fred Linhoss: Pending (documentation) requested
- Yasufumi Kinoshita: Pending requested
-
Diff: 1684 lines (+481/-217)16 files modifiedinnodb_adjust_defaults.patch (+4/-4)
innodb_buffer_pool_shm.patch (+7/-7)
innodb_deadlock_count.patch (+3/-3)
innodb_fast_checksum.patch (+4/-4)
innodb_fast_shutdown.patch (+15/-9)
innodb_files_extend.patch (+4/-4)
innodb_fix_misc.patch (+1/-1)
innodb_lru_dump_restore.patch (+375/-114)
innodb_pass_corrupt_table.patch (+27/-27)
innodb_separate_doublewrite.patch (+3/-3)
innodb_show_sys_tables.patch (+8/-11)
profiling_slow.patch (+2/-2)
response-time-distribution.patch (+1/-1)
show_slave_status_nolock.patch (+2/-2)
show_temp_51.patch (+2/-2)
userstat.patch (+23/-23)
Related bugs
Related blueprints
Branch information
- Owner:
- Percona developers
- Status:
- Development
Recent revisions
- 190. By Alexey Kopytov
-
Merged Facebook's changes to innodb_
lru_dump_ restore. patch: LRU is dumped to a temporary file first to avoid partially written files
in backups or in case of a crash.Release the LRU mutex while doing memset and file IO. Should mimimize
the impact on the host during scheduled LRU dump. Basic detection of
LRU cycling should the next page to dump be put back at the head of the
LRU during the unlocked window.Added option innodb_
lru_dump_ old_pages to control whether old pages are
included in the LRU dump. The default is to only dump young pages.Added option innodb_
lru_load_ max_entries specifying the maximum number
of LRU entries to restore. The default is 512k entries (8GB).
Consecutive pages are merged and only count as one, so you will probably
load more pages than this number of LRU entries.Switched to writing out LRU in priority order.
Load in LRU priority order, but always merge consecutive pages.
Add status vars for LRU restore progress: lru_restore_
total_pages and
lru_restore_loaded_ pages. Added restore rate limiting (restore no more than innodb_io_capacity
pages per second). In my testing, a value of 5000 is fine for a
pre-up-ip warmup, but this should be reduced to 500 before serving
traffic to ensure adequate IO capacity is available for foreground
threads. - 189. By Oleg Tsarev
-
final fix test for patch show_slave_
status_ nolock. patch. Unfortunatelly, SHOW SLAVE STATUS NOLOCK doesn't determenistic, because doesnt' lock mutex. As result we get float result of tests. Now I remove the SHOW SLAVE STATUS NOLOCK output from the test's result - 186. By Oleg Tsarev
-
I change test for show_slave_
status_ nolock. patch - replace values in columns Slave_IO_Running and Slave_SQL_Running by constants, and add additional sleep (I didn't find quick in mysql-test- framework way without sleep). - 184. By Alexey Kopytov
-
Fixed linker errors about undefined clock_gettime() in client programs
when building without SSL support (i.e. without the '--with-ssl' option
to configure).The problem was that in client/Makefile.am "LIBS" is overwritten by
"CLIENT_LIBS". So adding "-lrt" to LIBS alone is not enough, it has to
be added to CLIENT_LIBS as well. --with-ssl pulls the "-lrt" flag to
CLIENT_LIBS, that's why the problem could only be observed in very
specific build configurations (e.g. all BUILD/* scripts did not have
it). Actually, the problem exists in the MySQL server as well. It is
just hidden because MySQL does not check for librt at configure stage,
so it is always built without clock_gettime() support by default.Fixed by adding "-lrt" to CLIENT_LIBS as well. AC_SEARCH_LIBS() has to
be used instead of AC_CHECK_LIB() now, because apart from adding a
library flag to LIBS we now have to perform an additional action. - 183. By Oleg Tsarev
-
Sometime test percona_
slow_extended- log_slow_ verbosity are failed.
This test run long query(SELECT sleep(2)), and than analyze slow query log (search string "No InnoDB statistics available for this query").
You can see bug #695373 - first run of test doesn't string "No InnoDB... " instead of one, but retry run found two string instead of one.
I think reason of that - script searchs string in slow query log BEFORE this string was wrote to log by mysql.I add FLUSH LOGS, and now test work fine.
Similar changes for tests:
percona_slow_extended- control_ global_ slow
percona_slow_extended- log_slow_ filter
percona_slow_extended- log_slow_ verbosity
percona_slow_extended- long_query_ time
percona_slow_extended- microseconds_ in_slow_ extended
percona_slow_extended- min_examined_ row_limit
percona_slow_extended- slave_innodb_ stats
percona_slow_extended- slave_statement s-and-use_ global_ long_query_ time
percona_slow_extended- slave_statement s
percona_slow_extended- use_global_ long_query_ time - 181. By Alexey Kopytov
-
Bug #692211: innodb_
auto_lru_ dump crashes if ib_lru_dump doesn't exist Starting the server with a non-zero innodb_
auto_lru_ dump value could
crash the server if the dump file does not exist.The problem was that the 'records' pointer was not initialized at the
start of buf_LRU_file_restore( ). This could lead to calling ut_free()
with uninitialized value when the dump file is not found and further
execution of buf_LRU_file_restore( ) is therefore aborted. Fixed by initializing 'records' with NULL.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)