MariaDB-server/include
Monty 0b7b5cc1b3 MDEV-24 Segmented key cache for Aria
Added option 'aria-pagecache-segments', default 1.

For values > 1, this split the aria-pagecache-buffer into the given
number of segments, each independent from each other.  Having multiple
pagecaches improve performance when multiple connections runs queries
concurrently using different tables.

Each pagecache will use aria-pageache-buffer/segments amount of
memory, however at least 128K.

Each opened table has its index and data file use the segments in a
a round-robin fashion.

Internal changes:
- All programs allocating the maria pagecache themselves should now
  call multi_init_pagecache() instead of init_pagecache().
- pagecache statistics is now stored in 'pagecache_stats' instead of
  maria_pagecache. One must call multi_update_pagecache_stats() to
  update the statistics.
- Added into PAGECACHE_FILE a pointer to files pagecache. This was
  done to ensure that index and data file are using the same
  pagecache and simplified the checkpoint code.
  I kept pagecache in TABLE_SHARE to minimize the changes.
- really_execute_checkpoint() was update to handle a dynamic number of
  pagecaches.
- pagecache_collect_changed_blocks_with_lsn() was slight changed to
  allow it to be called for each pagecache.
- undefined not used functions maria_assign_pagecache() and
  maria_change_pagecache()
- ma_pagecaches.c is totally rewritten. It now contains all
  multi_pagecache functions.

Errors found be QA that are fixed:
MDEV-36872 UBSAN errors in ma_checkpoint.c
MDEV-36874 Behavior upon too small aria_pagecache_buffer_size in case of
           multiple segments is not very user-friendly
MDEV-36914 ma_checkpoint.c(285,9): conversion from '__int64' to 'uint'
           treated as an error
MDEV-36912 sys_vars.sysvars_server_embedded and
           sys_vars.sysvars_server_notembedded fail on x86
2025-06-25 17:59:45 +03:00
..
atomic
mysql MDEV-12182 post-merge 2025-05-02 13:56:25 +02:00
providers
aligned.h
aria_backup.h
assume_aligned.h
big_endian.h MDEV-34970 Vector search fails to compile on s390x 2024-11-05 14:00:50 -08:00
byte_order_generic_x86_64.h
byte_order_generic_x86.h
byte_order_generic.h
CMakeLists.txt MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
decimal.h
dur_prop.h
errmsg.h
ft_global.h
handler_ername.h MDEV-9101 forgotten symbolic error representation 2025-03-06 10:00:03 +01:00
handler_state.h
hash.h Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
heap.h MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00
ilist.h
json_lib.h Merge branch '11.8' into 12.0 2025-05-22 09:22:55 +02:00
keycache.h
lf.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
little_endian.h
m_ctype.h Merge branch '11.8' into 12.0 2025-05-22 09:22:55 +02:00
m_string.h MDEV-31340 fixup: clang++-20 -Wdeprecated-literal-operator 2024-12-02 10:44:06 +02:00
ma_dyncol.h
maria.h MDEV-24 Segmented key cache for Aria 2025-06-25 17:59:45 +03:00
mariadb_capi_rename.h more C API methods in the service_sql 2025-01-28 19:31:29 +01:00
my_alloc.h memroot improvement: fix savepoint support 2024-11-05 14:00:47 -08:00
my_alloca.h
my_atomic_wrapper.h
my_atomic.h
my_attribute.h Get debug version to compile with gcc 7.5.0 2025-06-02 14:02:53 +03:00
my_base.h Merge branch '11.8' into 12.0 2025-05-22 09:22:55 +02:00
my_bit.h cleanup: spaces, casts, comments 2024-11-05 14:00:47 -08:00
my_bitmap.h
my_byteorder.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
my_check_opt.h
my_cmp.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
my_compare.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
my_compiler.h MDEV-33748 get rid of pthread_(get_/set_)specific, use thread_local 2024-06-21 13:46:41 +02:00
my_counter.h
my_cpu.h Fix building with Clang and GCC on RISC-V 2025-03-21 18:28:36 +01:00
my_crypt.h
my_dbug.h Reënable ATTRIBUTE_FORMAT on DBUG_PRINT & t/eprint 2025-02-12 10:17:44 +01:00
my_decimal_limits.h
my_default.h
my_dir.h
my_getopt.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
my_global.h MDEV-24 Segmented key cache for Aria 2025-06-25 17:59:45 +03:00
my_handler_errors.h Merge 11.4 into 11.7 2025-01-09 09:41:38 +02:00
my_libwrap.h
my_list.h
my_md5.h
my_minidump.h
my_net.h
my_nosys.h
my_pthread.h Merge branch '11.4' into 11.8 2025-06-18 07:43:24 +02:00
my_rdtsc.h MDEV-34815 SIGILL error when executing mariadbd compiled for RISC-V with Clang 2024-12-05 02:36:25 +11:00
my_rnd.h
my_service_manager.h
my_stack_alloc.h MDEV-36412 Concerns compilation issue on community edition for x86_64 with X32 ABI 2025-04-19 11:03:43 +03:00
my_stacktrace.h
my_sys.h Merge branch '11.8' into 12.0 2025-05-22 09:22:55 +02:00
my_time.h Merge branch '11.4' into 11.8 2025-06-18 07:43:24 +02:00
my_tracker.h
my_tree.h
my_uctype.h
my_user.h
my_valgrind.h Added VALGRIND_YIELD to be able to abort from busy loops 2025-04-28 12:59:39 +03:00
my_virtual_mem.h MDEV-36780: InnoDB buffer pool reserves all assigned memory 2025-05-13 12:27:42 +03:00
my_xml.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
myisam.h Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
myisamchk.h MDEV-33751 Assertion `thd' failed in int temp_file_size_cb_func(tmp_file_tracking*, int) 2024-05-27 12:39:04 +02:00
myisammrg.h
myisampack.h cleanup: remove unconditional #ifdef's 2024-11-05 14:00:47 -08:00
mysql_com_server.h
mysql_com.h MDEV-33145 support for old-mode=OLD_FLUSH_STATUS 2024-05-27 12:39:03 +02:00
mysql_embed.h
mysql_time.h Extends 64 bit windows to support timestamps up to year 2106. 2024-05-27 12:39:02 +02:00
mysql_version.h.in
mysql.h fix error messages 2025-05-02 13:56:25 +02:00
mysqld_default_groups.h
mysys_err.h MDEV-9101 Limit size of created disk temporary files and tables 2024-05-27 12:39:04 +02:00
no_valgrind_without_big.inc
pack.h
password.h
pfs_file_provider.h
pfs_idle_provider.h
pfs_memory_provider.h
pfs_metadata_provider.h
pfs_socket_provider.h
pfs_stage_provider.h
pfs_statement_provider.h
pfs_table_provider.h
pfs_thread_provider.h MDEV-32537 Name threads to improve debugging experience and diagnostics. 2024-07-09 13:17:20 +02:00
pfs_transaction_provider.h
probes_mysql_nodtrace.h.in
probes_mysql.d.base
probes_mysql.h
queues.h Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
rijndael.h
scope.h Merge branch '11.4' into 11.7 2025-02-06 16:46:36 +01:00
service_versions.h MDEV-34712 Add support to sha2 and pbkdf2 key derivation in file_key_management 2025-04-28 13:43:32 +10:00
source_revision.h.in
span.h
sql_common.h Tag rest of my_vsnprintf users w/ ATTRIBUTE_FORMAT 2025-02-12 10:17:44 +01:00
ssl_compat.h
sslopt-case.h
sslopt-longopts.h MDEV-28908 Confusing documentation and help output for --ssl-verify-server-cert 2025-03-31 17:57:40 +02:00
sslopt-vars.h
t_ctype.h
thr_lock.h MDEV-36425 Extend read_only to also block share locks and super user 2025-04-28 12:59:39 +03:00
thr_timer.h
typelib.h cleanup: CREATE_TYPELIB_FOR() helper 2024-11-05 14:00:47 -08:00
violite.h MDEV-14091 Support password protected SSL key in server. 2025-04-19 14:04:10 +03:00
waiting_threads.h
welcome_copyright_notice.h
wqueue.h
wsrep.h