+1-208-473-2904 (USA - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-925-271-5054 (Training)
In cases where the buffer pool memory allocation was bigger than size of the node, system would start swapping already allocated memory even if there is available memory on other node. This is would happen if the default NUMA memory allocation policy was selected. In that case system would favor one node more than other which caused the node to run out of memory. Changing the allocation policy to interleaving, memory will be allocated in round-robing fashion over the available node. This can be done by using the mysqld_safe numa_interleave option.
Another improvement implemented is preallocating the pages in the buffer pool on startup with innodb_buffer_pool_populate variable. This forces NUMA allocation decisions to be made immediately while the buffer cache is clean.
It is generally recommended to enable all of the options together to maximize the performance effects on the NUMA architecture.
- 5.5.28-29.1
Improved NUMA support implemented. This feature was ported from Twitter’s MySQL patches.
| Command Line: | Yes |
|---|---|
| Config File: | No |
| Location : | mysqld |
| Scope: | Global |
| Dynamic: | No |
| Variable Type: | Boolean |
| Default Value: | 0 |
| Range: | 0/1 |
When this variable is enabled, InnoDB preallocates pages in the buffer pool on startup to force NUMA allocation decisions to be made immediately while the buffer cache is clean.
| Command Line: | No |
|---|---|
| Config File: | No |
| Location : | mysqld_safe |
| Dynamic: | No |
| Variable Type: | Boolean |
| Default Value: | 0 |
| Range: | 0/1 |
When enabled this will flush and purge buffers/caches before starting the server to help ensure NUMA allocation fairness across nodes. This option is useful for establishing a consistent and predictable behavior for normal usage and/or benchmarking.
| Command Line: | No |
|---|---|
| Config File: | No |
| Location : | mysqld_safe |
| Dynamic: | No |
| Variable Type: | Boolean |
| Default Value: | 0 |
| Range: | 0/1 |
When this option is enabled, mysqld will run with its memory interleaved on all NUMA nodes by starting it with numactl --interleave=all. In case there is just 1 CPU/node, allocations will be “interleaved” between that node.