Commit c7f4a3da authored by Mikael Ronstrom's avatar Mikael Ronstrom

Changed configuration defaults for improved performance on modern computers

sql/mysql_priv.h:
  Change default number of open tables in cache and table definition cache size to 1024
storage/innobase/handler/ha_innodb.cc:
  Remove limitation in InnoDB by default on only 8 internal threads
parent 9daa56fd
...@@ -260,8 +260,8 @@ protected: ...@@ -260,8 +260,8 @@ protected:
#define MAX_FIELDS_BEFORE_HASH 32 #define MAX_FIELDS_BEFORE_HASH 32
#define USER_VARS_HASH_SIZE 16 #define USER_VARS_HASH_SIZE 16
#define TABLE_OPEN_CACHE_MIN 64 #define TABLE_OPEN_CACHE_MIN 64
#define TABLE_OPEN_CACHE_DEFAULT 64 #define TABLE_OPEN_CACHE_DEFAULT 1024
#define TABLE_DEF_CACHE_DEFAULT 256 #define TABLE_DEF_CACHE_DEFAULT 1024
/** /**
We must have room for at least 256 table definitions in the table We must have room for at least 256 table definitions in the table
cache, since otherwise there is no chance prepared cache, since otherwise there is no chance prepared
......
...@@ -8161,7 +8161,7 @@ static MYSQL_SYSVAR_ULONG(sync_spin_loops, srv_n_spin_wait_rounds, ...@@ -8161,7 +8161,7 @@ static MYSQL_SYSVAR_ULONG(sync_spin_loops, srv_n_spin_wait_rounds,
static MYSQL_SYSVAR_ULONG(thread_concurrency, srv_thread_concurrency, static MYSQL_SYSVAR_ULONG(thread_concurrency, srv_thread_concurrency,
PLUGIN_VAR_RQCMDARG, PLUGIN_VAR_RQCMDARG,
"Helps in performance tuning in heavily concurrent environments. Sets the maximum number of threads allowed inside InnoDB. Value 0 will disable the thread throttling.", "Helps in performance tuning in heavily concurrent environments. Sets the maximum number of threads allowed inside InnoDB. Value 0 will disable the thread throttling.",
NULL, NULL, 8, 0, 1000, 0); NULL, NULL, 0, 0, 1000, 0);
static MYSQL_SYSVAR_ULONG(thread_sleep_delay, srv_thread_sleep_delay, static MYSQL_SYSVAR_ULONG(thread_sleep_delay, srv_thread_sleep_delay,
PLUGIN_VAR_RQCMDARG, PLUGIN_VAR_RQCMDARG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment