mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5205 - MariaDB does not start if more than 128 cpu's are available
- thread_pool_size command line option upper limit increased to 100 000 (same as for max_connections) - thread_pool_size system variable upper limit is maximum of 128 or the value given at command line - thread groups are now allocated dynamically Different limit for command line option and system variable was done to avoid additional mutex for all_groups and threadpool_max_size.
This commit is contained in:
11
mysql-test/suite/sys_vars/r/thread_pool_size_high.result
Normal file
11
mysql-test/suite/sys_vars/r/thread_pool_size_high.result
Normal file
@ -0,0 +1,11 @@
|
||||
SELECT @@global.thread_pool_size;
|
||||
@@global.thread_pool_size
|
||||
200
|
||||
SET @@global.thread_pool_size=150;
|
||||
SET @@global.thread_pool_size=200;
|
||||
SET @@global.thread_pool_size=201;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect thread_pool_size value: '201'
|
||||
SELECT @@global.thread_pool_size;
|
||||
@@global.thread_pool_size
|
||||
200
|
1
mysql-test/suite/sys_vars/t/thread_pool_size_basic.opt
Normal file
1
mysql-test/suite/sys_vars/t/thread_pool_size_basic.opt
Normal file
@ -0,0 +1 @@
|
||||
--loose-thread-handling=pool-of-threads
|
@ -1,6 +1,7 @@
|
||||
# uint global
|
||||
--source include/not_windows.inc
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_pool_of_threads.inc
|
||||
SET @start_global_value = @@global.thread_pool_size;
|
||||
|
||||
#
|
||||
|
1
mysql-test/suite/sys_vars/t/thread_pool_size_high.opt
Normal file
1
mysql-test/suite/sys_vars/t/thread_pool_size_high.opt
Normal file
@ -0,0 +1 @@
|
||||
--loose-thread-handling=pool-of-threads --loose-thread-pool-size=200
|
14
mysql-test/suite/sys_vars/t/thread_pool_size_high.test
Normal file
14
mysql-test/suite/sys_vars/t/thread_pool_size_high.test
Normal file
@ -0,0 +1,14 @@
|
||||
--source include/not_windows.inc
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_pool_of_threads.inc
|
||||
|
||||
SELECT @@global.thread_pool_size;
|
||||
|
||||
# Set lower value
|
||||
SET @@global.thread_pool_size=150;
|
||||
# Set original value
|
||||
SET @@global.thread_pool_size=200;
|
||||
# Try higher value
|
||||
SET @@global.thread_pool_size=201;
|
||||
|
||||
SELECT @@global.thread_pool_size;
|
Reference in New Issue
Block a user