NUMA hardware is becoming more common. Access to RAM that is not local to the CPU nodes is more expensive than accessing it locally. MariaDB should implement mechanisms to optimize the workload to keep CPUs of a node accessing their local memory.
example numa architecture:
Components of the implementation include:
- A meaningful configuration that makes conflicts with existing settings obvious
- each innodb buffer pool instances to be constrained to a NUMA node
- SQL threads to be allocated by a user configurable map of one or more of user, connecting host, default database (based on initial connection)
- The user SQL thread will be pinned to CPUs associated with a node
- Innodb accesses by the SQL thread will be to/from the innodb buffer pool instances first
- Accounting of CPU/memory utilization for the mapping identifier to enable automated or configuration based of node to this mapping identifier.
- Innodb background threads to be per node to facilitate the innodb buffer pool instance processing locally
(Marko, Jan, et al. please edit with important design/implementation details)
I'm willing to mentor this (with help).