InnoDB
Startup Options and System Variables
1252
Type
numeric
Default
20
Range
1 .. 1000
Permitted Values (>= 5.0.19)
Type
numeric
Default
8
Range
0 .. 1000
InnoDB
tries to keep the number of operating system threads concurrently inside
InnoDB
less than
or equal to the limit given by this variable. Once the number of threads reaches this limit, additional
threads are placed into a wait state within a FIFO queue for execution. Threads waiting for locks are
not counted in the number of concurrently executing threads.
The correct value for this variable is dependent on environment and workload. You will need to try a
range of different values to determine what value works for your applications. A recommended value
is 2 times the number of CPUs plus the number of disks.
The range of this variable is 0 to 1000. A value of 20 or higher is interpreted as infinite concurrency
before MySQL 5.0.19. From 5.0.19 on, you can disable thread concurrency checking by setting the
value to 0. Disabling thread concurrency checking enables InnoDB to create as many threads as it
needs.
The default value has changed several times: 8 before MySQL 5.0.8, 20 (infinite) from 5.0.8 through
5.0.18, 0 (infinite) from 5.0.19 to 5.0.20, and 8 (finite) from 5.0.21 on.
•
innodb_thread_sleep_delay
Version Introduced
5.0.3
Command-Line Format
--innodb_thread_sleep_delay=#
Option-File Format
innodb_thread_sleep_delay
Option Sets Variable
Yes,
innodb_thread_sleep_delay
[1252]
Variable Name
innodb_thread_sleep_delay
Variable Scope
Global
Dynamic Variable
Yes
Permitted Values (>= 5.0.8, <= 5.0.18)
Type
numeric
Default
0
Range
1000 .. 4294967295
Permitted Values (>= 5.0.19, <= 5.0.20)
Type
numeric
Default
0
Range
1000 .. 4294967295
Permitted Values (>= 5.0.21)
Type
numeric
Default
8
How long
InnoDB
threads sleep before joining the
InnoDB
queue, in microseconds. The default
value is 10,000. A value of 0 disables sleep. This variable was added in MySQL 5.0.3.
•
innodb_use_legacy_cardinality_algorithm
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...