1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-24 06:01:25 +03:00
Files
mariadb/mysql-test/suite/sys_vars/r/innodb_page_cleaners_basic.result
Marko Mäkelä 1a6f708ec5 MDEV-15058: Deprecate and ignore innodb_buffer_pool_instances
Our benchmarking efforts indicate that the reasons for splitting the
buf_pool in commit c18084f71b
have mostly gone away, possibly as a result of
mysql/mysql-server@ce6109ebfd
or similar work.

Only in one write-heavy benchmark where the working set size is
ten times the buffer pool size, the buf_pool->mutex would be
less contended with 4 buffer pool instances than with 1 instance,
in buf_page_io_complete(). That contention could be alleviated
further by making more use of std::atomic and by splitting
buf_pool_t::mutex further (MDEV-15053).

We will deprecate and ignore the following parameters:

	innodb_buffer_pool_instances
	innodb_page_cleaners

There will be only one buffer pool and one page cleaner task.

In a number of INFORMATION_SCHEMA views, columns that indicated
the buffer pool instance will be removed:

	information_schema.innodb_buffer_page.pool_id
	information_schema.innodb_buffer_page_lru.pool_id
	information_schema.innodb_buffer_pool_stats.pool_id
	information_schema.innodb_cmpmem.buffer_pool_instance
	information_schema.innodb_cmpmem_reset.buffer_pool_instance
2020-02-12 14:45:21 +02:00

79 lines
2.3 KiB
Plaintext

SELECT COUNT(@@GLOBAL.innodb_page_cleaners);
COUNT(@@GLOBAL.innodb_page_cleaners)
1
1 Expected
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SET @@GLOBAL.innodb_page_cleaners=2;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
2 Expected
SET @@GLOBAL.innodb_page_cleaners=1;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SET @@GLOBAL.innodb_page_cleaners=6;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
6 Expected
SET @@GLOBAL.innodb_page_cleaners=4;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Expected to pass
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
4 Expected
SET @@GLOBAL.innodb_page_cleaners=0;
Warnings:
Warning 138 The parameter innodb_page_cleaners is deprecated and has no effect.
Warning expected
SELECT @@innodb_page_cleaners;
@@innodb_page_cleaners
1
1 Expected
SELECT innodb_page_cleaners = @@SESSION.innodb_page_cleaners;
ERROR 42S22: Unknown column 'innodb_page_cleaners' in 'field list'
Expected error 'Read-only variable'
SELECT @@GLOBAL.innodb_page_cleaners = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
@@GLOBAL.innodb_page_cleaners = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_page_cleaners';
COUNT(VARIABLE_VALUE)
1
1 Expected
SELECT @@innodb_page_cleaners = @@GLOBAL.innodb_page_cleaners;
@@innodb_page_cleaners = @@GLOBAL.innodb_page_cleaners
1
1 Expected
SELECT COUNT(@@local.innodb_page_cleaners);
ERROR HY000: Variable 'innodb_page_cleaners' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_page_cleaners);
ERROR HY000: Variable 'innodb_page_cleaners' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME = 'innodb_page_cleaners';
VARIABLE_NAME VARIABLE_VALUE
INNODB_PAGE_CLEANERS 1