1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00
Files
mariadb/mysql-test/suite/innodb/r
Marko Mäkelä 45ed9dd957 MDEV-23855: Remove fil_system.LRU and reduce fil_system.mutex contention
Also fixes MDEV-23929: innodb_flush_neighbors is not being ignored
for system tablespace on SSD

When the maximum configured number of file is exceeded, InnoDB will
close data files. We used to maintain a fil_system.LRU list and
a counter fil_node_t::n_pending to achieve this, at the huge cost
of multiple fil_system.mutex operations per I/O operation.

fil_node_open_file_low(): Implement a FIFO replacement policy:
The last opened file will be moved to the end of fil_system.space_list,
and files will be closed from the start of the list. However, we will
not move tablespaces in fil_system.space_list while
i_s_tablespaces_encryption_fill_table() is executing
(producing output for INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION)
because it may cause information of some tablespaces to go missing.
We also avoid this in mariabackup --backup because datafiles_iter_next()
assumes that the ordering is not changed.

IORequest: Fold more parameters to IORequest::type.

fil_space_t::io(): Replaces fil_io().

fil_space_t::flush(): Replaces fil_flush().

OS_AIO_IBUF: Remove. We will always issue synchronous reads of the
change buffer pages in buf_read_page_low().

We will always ignore some errors for background reads.

This should reduce fil_system.mutex contention a little.

fil_node_t::complete_write(): Replaces fil_node_t::complete_io().
On both read and write completion, fil_space_t::release_for_io()
will have to be called.

fil_space_t::io(): Do not acquire fil_system.mutex in the normal
code path.

xb_delta_open_matching_space(): Do not try to open the system tablespace
which was already opened. This fixes a file sharing violation in
mariabackup --prepare --incremental.

Reviewed by: Vladislav Vaintroub
2020-10-26 17:09:01 +02:00
..
2020-05-05 20:33:10 +03:00
2020-05-26 11:54:55 +03:00
2019-04-05 11:41:03 +03:00
2020-09-23 11:32:43 +03:00
2019-07-18 18:01:04 +03:00
2019-07-22 15:28:05 +03:00
2020-10-22 17:08:49 +03:00
2020-09-03 15:53:38 +03:00
2017-02-10 06:30:42 -05:00
2019-08-21 15:23:45 +03:00
2019-03-25 17:18:15 +02:00
2017-02-10 06:30:42 -05:00
2019-04-25 16:05:20 +03:00
2019-07-16 18:39:21 +03:00
2019-07-25 18:42:06 +03:00
2020-04-25 21:57:52 +03:00
2019-11-01 15:23:18 +02:00
2020-08-13 18:18:25 +03:00
2020-03-21 11:37:10 +02:00
2020-08-20 12:52:44 +03:00
2020-10-22 17:08:49 +03:00
2020-05-05 21:16:22 +03:00
2020-05-05 21:16:22 +03:00
2016-12-30 13:48:22 +02:00
2020-07-31 13:51:28 +03:00
2017-02-10 06:30:42 -05:00
2019-07-16 18:39:21 +03:00
2018-11-06 09:40:39 +02:00
2020-09-23 11:32:43 +03:00
2019-07-02 21:44:58 +03:00
2020-09-22 14:33:03 +03:00
2019-05-04 17:04:55 +02:00
2020-04-16 12:12:26 +03:00
2020-06-05 18:05:22 +03:00