lp://qastaging/~alexey2k/percona-server/5.5-perf-fixes-jemalloc
- Get this branch:
- bzr branch lp://qastaging/~alexey2k/percona-server/5.5-perf-fixes-jemalloc
Branch merges
Branch information
- Owner:
- Alexey Stroganov
- Status:
- Development
Recent revisions
- 449. By Vadim Tkachenko
-
Added cmake routines to build with jemalloc:
cmake ... -DWITH_JEMALLOC= <path/to/ jemalloc/ basedir> Merged r3831(lp:mysqlatfacebook/51)
mysql>show memory status\GAdded support to enable/disable jemalloc profile at runtime:
mysql>set jemalloc_prof_active= <ON|OFF> ; Added support to dump jemalloc profile to the file at runtime:
mysql>set jemalloc_prof_dump= <file>; - 446. By Alexey Kopytov
-
Bug #1125248: Suboptimal srv_pass_
corrupt_ table checks The problem:
srv_pass_
corrupt_ table was checked in many places in the code,
sometimes on critical paths. In most cases the check looked like this:block = btr_block_
get(space, zip_size, root_page_no, RW_X_LATCH,
index, mtr);if (srv_pass_
corrupt_ table && !block) {
return(0);
}
ut_a(block);For the common (i.e. non-corrupted) case:
- it is more efficient to first check for the 'block' value, since it
is already in a register, and then the value of
srv_pass_corrupt_ table does not have to be loaded no branch - many branch mispredictions visible in profiles due to missing
compiler annotations- if srv_pass_
corrupt_ table is enabled, but block is not zero, it's
value is checked twice.Fixed by addressing all of the above problems in all
srv_pass_corrupt_ table check sites.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://qastaging/percona-server/5.5