mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
MDEV-10296 - Multi-instance table cache
Improve scalability by implementing multi-instance table cache.
This commit is contained in:
parent
6c1c27ea11
commit
7e9ac7b8ac
9 changed files with 186 additions and 185 deletions
|
|
@ -3227,6 +3227,11 @@ static Sys_var_ulong Sys_table_cache_size(
|
|||
BLOCK_SIZE(1), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
|
||||
ON_UPDATE(fix_table_open_cache));
|
||||
|
||||
static Sys_var_ulong Sys_table_cache_instances(
|
||||
"table_open_cache_instances", "The number of table cache instances",
|
||||
READ_ONLY GLOBAL_VAR(tc_instances), CMD_LINE(REQUIRED_ARG),
|
||||
VALID_RANGE(1, 64), DEFAULT(1), BLOCK_SIZE(1));
|
||||
|
||||
static Sys_var_ulong Sys_thread_cache_size(
|
||||
"thread_cache_size",
|
||||
"How many threads we should keep in a cache for reuse. These are freed after 5 minutes of idle time",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue