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
Daniel Black de51acd037 MDEV-18726: innodb buffer pool size not consistent with large pages
Rather than add a small extra amount on the size of chunks, keep it
of the specified size. The rest of the chunk initialization code
adapts to this small size reduction. This has been made in the general
case, not just large pages, to keep it simple.

The chunks size is controlled by innodb-buffer-pool-chunk-size. In the
code increasing this by a descriptor table size length makes it
difficult with large pages. With innodb-buffer-pool-chunk-size set to 2M
the code before this commit would of added a small amount extra to this
value when it tried to allocate this. While not normally a problem it is
with large pages, it now requires addition space, a whole extra large
page. With a number of pools, or with 1G or 16G large pages this is
quite significant.

By removing this additional amount, DBAs can set
innodb-buffer-pool-chunk size to the large page size, or a multiple of
it, and actually get that amount allocated. Previously they had to fudge
a value less.

The innodb.test results show how this is fudged over a number of tests. With
this change the values are just between 488 and 500 depending on architecture
and build options.

Tested with  --large-pages --innodb-buffer-pool-size=256M
--innodb-buffer-pool-chunk-size=2M on x86_64 with 2M default large page
size. Breaking before buf_pool init, one large page was allocated in
MyISAM, by the end of the function 128 huge pages where allocated as
expected. A further 16 pages where allocated for a 32M log buffer and
during startup 1 page was allocated briefly to the redo log.
2019-03-18 21:49:53 +02:00
BUILD Fixed BUILD scripts to by default work with galera and tokudb 2018-12-09 20:49:05 +02:00
client MDEV-18450 Slaves wait shutdown 2019-03-12 17:34:48 +02:00
cmake Merge 10.3 into 10.4 2019-03-11 18:27:58 +02:00
dbug Merge 10.2 into 10.3 2019-03-08 00:26:55 +02:00
debian Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
Docs Merge 10.3 into 10.4 2019-01-06 17:43:02 +02:00
extra MDEV-18644: Support full_crc32 for page_compressed 2019-03-18 14:08:43 +02:00
include 10.4 wsrep group commit fixes (#1224) 2019-03-15 07:09:13 +02:00
libmariadb@4aad20db15 update C/C 2019-02-21 15:04:03 +01:00
libmysqld MDEV-18408 Assertion `0' failed in Item::val_native_result / Timestamp_or_zero_datetime_native_null::Timestamp_or_zero_datetime_native_null upon mysqld_list_fields after crash recovery 2019-02-25 12:29:42 +04:00
libservices MDEV-5313 Improving audit api. 2018-12-12 01:49:39 +04:00
man Merge 10.3 into 10.4 2019-01-24 22:42:35 +02:00
mysql-test MDEV-18726: innodb buffer pool size not consistent with large pages 2019-03-18 21:49:53 +02:00
mysys Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
mysys_ssl Windows : fix broken build with OpenSSL 2018-09-08 20:36:31 +01:00
pcre fix bundled pcre unit tests 2018-08-13 12:14:56 +02:00
plugin try harder to link unix_socket plugin statically 2019-02-21 15:04:03 +01:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts Merge 10.3 into 10.4 2019-03-11 18:27:58 +02:00
sql MDEV-18888 Server crashes in Item_field::register_field_in_read_map upon... 2019-03-17 13:51:46 +05:30
sql-bench Added more test to sql-bench 2018-04-30 14:05:27 +03:00
sql-common Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
storage MDEV-18726: innodb buffer pool size not consistent with large pages 2019-03-18 21:49:53 +02:00
strings MDEV-5313 Improving audit API. 2019-01-18 03:18:02 +04:00
support-files Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
tests Merge 10.3 into 10.4 2019-03-08 11:19:48 +02:00
unittest Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
vio MDEV-17926 FederatedX TODO is obsolete 2018-12-12 00:31:04 +01:00
win Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
wsrep-lib@ae746fb289 Merge pull request #1222 from codership/10.4-clear-sr-bugfix 2019-03-11 16:33:58 +02:00
zlib Merge 10.1 into 10.2 2018-11-06 08:41:48 +02:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
.gitmodules Galera4 2019-01-23 15:30:00 +04:00
.travis.compiler.sh travis: use galera-4 in 10.4 branch (#1226) 2019-03-14 08:20:32 +02:00
.travis.yml travis: use galera-4 in 10.4 branch (#1226) 2019-03-14 08:20:32 +02:00
appveyor.yml Appveyor configuration and addition of badge 2019-01-10 11:58:02 +01:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge 10.3 into 10.4 2019-03-11 18:27:58 +02:00
config.h.cmake Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
configure.cmake Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
CONTRIBUTING.md Add CONTRIBUTING file and modify README file about live QA regarding new contributors 2018-12-04 23:15:33 +04:00
COPYING Use a new version of "COPYING", the GPL text. 2010-03-04 14:26:27 +01:00
COPYING.thirdparty Correct FSF address 2017-03-10 18:21:29 +01:00
CREDITS Update contributors 2018-09-10 16:47:44 +04: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 Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
README.md Merge 10.3 into 10.4 2019-01-14 09:40:12 +02:00
VERSION Increase the version 2019-02-28 23:40:49 +01:00

Code status:

  • Travis CI status travis-ci.org (10.4 branch)
  • Appveyor CI status ci.appveyor.com

MariaDB: drop-in replacement for MySQL

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 and the MariaDB corporation. Please read the CREDITS file 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 the MariaDB Corporation, the MariaDB Foundation 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 run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/library/new-and-old-releases/

https://mariadb.org/

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

Help

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

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip and IRC. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

License


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.


Bug Reports

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

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

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

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