mariadb/mysql-test/suite
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
..
archive
binlog Merge 10.3 into 10.4 2019-03-12 16:14:31 +02:00
binlog_encryption
compat/oracle MDEV-18813 PROCEDURE and anonymous blocks silently ignore FETCH GROUP NEXT ROW 2019-03-07 18:48:15 +04:00
csv
encryption MDEV-18644: Support full_crc32 for page_compressed 2019-03-18 14:08:43 +02:00
engines
federated
funcs_1
funcs_2
galera MDEV-18915 Re-record MTR test galera.galera_many_rows (#1228) 2019-03-15 12:29:38 +02:00
galera_3nodes Merge 10.3 into 10.4 2019-03-11 18:27:58 +02:00
galera_3nodes_sr Merge pull request #1222 from codership/10.4-clear-sr-bugfix 2019-03-11 16:33:58 +02:00
galera_sr MDEV-18666 Fix MTR test galera_sr_kill_all_norecovery (#1229) 2019-03-15 16:22:32 +02:00
gcol
handler
heap MDEV-18941: Temporarily record wrong result after MDEV-18922 2019-03-15 18:18:45 +02:00
innodb MDEV-18726: innodb buffer pool size not consistent with large pages 2019-03-18 21:49:53 +02:00
innodb_fts Merge 10.3 into 10.4 2019-03-07 08:02:33 +02:00
innodb_gis
innodb_zip
jp
json
large_tests
maria
mariabackup MDEV-18644: Support full_crc32 for page_compressed 2019-03-18 14:08:43 +02:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs
parts Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
perfschema Adieu slave_list 2019-03-06 17:06:09 +04:00
perfschema_stress
period
plugins
roles
rpl MDEV-18450 followup: fixing rpl_shutdown_wait. The test 2019-03-14 18:48:29 +02:00
sql_sequence
storage_engine
stress
sys_vars Merge 10.3 into 10.4 2019-03-08 11:19:48 +02:00
unit
vcol Merge 10.3 into 10.4 2019-03-06 09:00:52 +02:00
versioning
wsrep 10.4 wsrep group commit fixes (#1224) 2019-03-15 07:09:13 +02:00