MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Jan Lindström a03dd94be8 MDEV-6936: Buffer pool list scan optimization
Merged Facebook commit 617aef9f911d825e9053f3d611d0389e02031225
authored by Inaam Rana to InnoDB storage engine (not XtraDB)
from https://github.com/facebook/mysql-5.6

WL#7047 - Optimize buffer pool list scans and related batch processing

Reduce excessive scanning of pages when doing flush list batches. The
fix is to introduce the concept of "Hazard Pointer", this reduces the
time complexity of the scan from O(n*n) to O.

The concept of hazard pointer is reversed in this work. Academically
hazard pointer is a pointer that the thread working on it will declar
such and as long as that thread is not done no other thread is allowe
do anything with it.

In this WL we declare the pointer as a hazard pointer and then if any
thread attempts to work on it, it is allowed to do so but it has to a
the hazard pointer to the next valid value. We use hazard pointer sol
reverse traversal of lists within a buffer pool instance.

Add an event to control the background flush thread. The background f
thread wait has been converted to an os event timed wait so that it c
signalled by threads that want to kick start a background flush when
buffer pool is running low on free/dirty pages.
2014-11-06 13:17:11 +02:00
BUILD MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
client Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
cmake Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
dbug MDEV-6410 Cross-compile fixes 2014-07-08 19:34:53 +02:00
debian Added SST scripts to the server package. 2014-10-27 21:19:12 -04:00
Docs MDEV-6247: Merge 10.0-galera to 10.1. 2014-08-26 15:43:46 +03:00
extra Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
include Merge branch 'bb-10.1-merge' into 10.1 2014-10-16 00:30:29 +02:00
libmysql MDEV-6638 mysql_options4 symbol missing from libmysqlclient.so.18 2014-09-07 20:40:36 +02:00
libmysqld fixing embedded: WaaS. Wsrep as a Service. 2014-10-01 23:48:34 +02:00
libservices fixing embedded: WaaS. Wsrep as a Service. 2014-10-01 23:48:34 +02:00
man Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
mysql-test MDEV-6936: Buffer pool list scan optimization 2014-11-06 13:17:11 +02:00
mysys MDEV-6939 : Dots in file names of configuration files 2014-10-29 22:31:19 -04:00
mysys_ssl MD5 service 2014-10-01 23:38:28 +02:00
packaging MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
pcre pcre-8.35 2014-06-05 16:05:08 +02:00
plugin Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts MDEV-5528 Command line variable to choose MariaDB-5.3 vs MySQL-5.6 temporal data formats 2014-11-03 21:45:06 +04:00
sql MDEV-5528 Command line variable to choose MariaDB-5.3 vs MySQL-5.6 temporal data formats 2014-11-03 21:45:06 +04:00
sql-bench Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
sql-common Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
storage MDEV-6936: Buffer pool list scan optimization 2014-11-06 13:17:11 +02:00
strings MDEV-6776 ujis and eucjmps erroneously accept 0x8EA0 as a valid byte sequence 2014-09-24 17:27:00 +04:00
support-files Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
tests MDEV-6647 MariaDB CLI client doesnt show CREATE INDEX progress 2014-09-10 17:45:09 +02:00
unittest 5.5 merge 2014-05-09 12:35:11 +02:00
vio 5.5.39 merge 2014-08-07 18:06:56 +02:00
win 5.5.38 merge 2014-06-06 00:07:27 +02:00
wsrep cleanup: galera merge, simple changes 2014-10-01 23:38:27 +02:00
zlib Backport from trunk: 2014-05-07 17:09:14 +02:00
.gitattributes git: ignore errmsg.sys and typescript, better diff header for C/C++ files 2014-08-27 21:25:06 +02:00
.gitignore after-merge fixes 2014-10-15 22:42:08 +02:00
BUILD-CMAKE various documentation updates 2012-06-18 16:57:58 -04:00
CMakeLists.txt Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
config.h.cmake MDEV-6648: InnoDB: Add support for 4K sector size if supported 2014-10-29 11:07:11 +02:00
configure.cmake MDEV-6648: InnoDB: Add support for 4K sector size if supported 2014-10-29 11:07:11 +02:00
COPYING Use a new version of "COPYING", the GPL text. 2010-03-04 14:26:27 +01:00
COPYING.LESSER MWL#192: non-blocking client API, after-review fixes. 2012-01-06 12:43:18 +01:00
COPYING.thirdparty split README into the actual README and third-party licenses 2014-05-24 18:23:46 +02:00
CREDITS Updated sponsors and authors 2014-03-28 09:31:43 +02:00
EXCEPTIONS-CLIENT MDEV-5645 MariaDB-5.5.35 - references are made to an "EXCEPTIONS-CLIENT" file but it does not exist 2014-05-31 13:18:56 +02:00
INSTALL-SOURCE Removed the obsolete instructions from the MySQL 5.1 manual. Instead provide a link to https://kb.askmonty.org/en/compiling-mariadb-from-source/ 2013-03-01 11:36:15 -05:00
INSTALL-WIN-SOURCE various documentation updates 2012-06-18 16:57:58 -04:00
KNOWN_BUGS.txt various documentation updates 2012-06-18 16:57:58 -04:00
README split README into the actual README and third-party licenses 2014-05-24 18:23:46 +02:00
VERSION Increase the version number 2014-10-28 14:49:31 +04:00

MariaDB is designed as a drop-in replacement of MySQL(R) with more
features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB foundation.
Please read the file CREDITS for details about the MariaDB foundation,
and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who
now work for MariadB foundation and SkySQL Ab, and by many people in
the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle
Corporation, Inc. For a list of developers and other contributors,
see the Credits appendix.  You can also do 'SHOW authors' to get a
list of active contributors.

A description of the MariaDB project and a manual can be found at:
http://mariadb.org/
https://mariadb.com/kb/en/
https://mariadb.com/kb/en/mariadb-vs-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

As MariaDB is a full replacement of MySQL, the MySQL manual at
http://dev.mysql.com/doc is generally applicable.

More help is available from the Maria Discuss mailing list
https://launchpad.net/~maria-discuss
and the #maria IRC channel on Freenode.

***************************************************************************

NOTE: 

MariaDB is specifically available only under version 2 of the GNU
General Public License (GPLv2). (I.e. Without the "any later version"
clause.) This is inherited from MySQL. Please see the README file in
the MySQL distribution for more information.

License information can be found in the COPYING, COPYING.LESSER,
and COPYING.thirdparty files.

***************************************************************************

IMPORTANT:

Bug and/or error reports regarding MariaDB should be submitted at
http://mariadb.org/jira

Bugs in the MySQL code can also be submitted at http://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at:
https://github.com/MariaDB/server

***************************************************************************