mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
b2944adb76
BUF_LRU_MIN_LEN (256) is too high value for low buffer pool(BP) size. For example, for BP size lower than 80M and 16 K page size, the limit is more than 5% of total BP and for lowest BP 5M, it is 80% of the BP. Non-data objects like explicit locks could occupy part of the BP pool reducing the pages available for LRU. If LRU reaches minimum limit and if no free pages are available, server would hang with page cleaner not able to free any more pages. Fix: To avoid such hang, we adjust the LRU limit lower than the limit for data objects as checked in buf_LRU_check_size_of_non_data_objects() i.e. one page less than 5% of BP.
19 lines
535 B
Text
19 lines
535 B
Text
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
|
|
--echo #
|
|
--echo # MDEV-34166 Server could hang with BP < 80M under stress
|
|
--echo #
|
|
|
|
call mtr.add_suppression("\\[Warning\\] InnoDB: Over 67 percent of the buffer pool");
|
|
|
|
CREATE TABLE t1 (col1 INT) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
|
|
|
--error ER_LOCK_TABLE_FULL
|
|
SET STATEMENT debug_dbug='+d,innodb_skip_lock_bitmap' FOR
|
|
INSERT INTO t1 SELECT a.* FROM t1 a, t1 b, t1 c, t1 d, t1 e, t1 f, t1 g LIMIT 45000;
|
|
|
|
SELECT COUNT(*) FROM t1;
|
|
|
|
DROP TABLE t1;
|