make memblock allocator utilize the node's fallback info
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mm/numa: extract the code of building node fall back listmm/ | +29 | 0 replies | |
| 2/6 | mm/memblock: make full utilization of numa infoinclude/ mm/ | +66 | 5 replies | |
| 3/6 | x86/numa: define numa_init_array() conditional on CONFIG_NUMAarch/ | +4 | 2 replies | |
| 4/6 | x86/numa: concentrate the code of setting cpu to node maparch/ | +13 | 1 reply | |
| 5/6 | x86/numa: push forward the setup of node to cpumask maparch/ arch/ arch/ | +4 | 2 replies | |
| 6/6 | x86/numa: build node fallback info after setting up node to cpumask maparch/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] make memblock allocator utilize the node's fallback info
There are NUMA machines with memory-less node. At present page allocator builds the full fallback info by build_zonelists(). But memblock allocator does not utilize this info. And for memory-less node, memblock allocator just falls back "node 0", without utilizing the nearest node. Unfortunately, the percpu section is allocated by memblock, which is accessed frequently after bootup.
This series aims to improve the performance of per cpu section on memory-less node by feeding node's fallback info to memblock allocator on x86, like we do for page allocator. On other archs, it requires independent effort to setup node to cpumask map ahead.
Pingfan Liu (6):
mm/numa: extract the code of building node fall back list mm/memblock: make full utilization of numa info x86/numa: define numa_init_array() conditional on CONFIG_NUMA x86/numa: concentrate the code of setting cpu to node map x86/numa: push forward the setup of node to cpumask map x86/numa: build node fallback info after setting up node to cpumask
map
arch/x86/include/asm/topology.h | 4 --- arch/x86/kernel/setup.c | 2 ++ arch/x86/kernel/setup_percpu.c | 3 -- arch/x86/mm/numa.c | 40 +++++++++++------------- include/linux/memblock.h | 3 ++ mm/memblock.c | 68 ++++++++++++++++++++++++++++++++++++++--- mm/page_alloc.c | 48 +++++++++++++++++------------ 7 files changed, 114 insertions(+), 54 deletions(-)
Signature · 1 line
2.7.4