Hello, On Tue, Jul 22, 2014 at 02:43:11PM -0700, Nishanth Aravamudan wrote: ... > " There is an issue currently where NUMA information is used on powerpc > (and possibly ia64) before it has been read from the device-tree, which > leads to large slab consumption with CONFIG_SLUB and memoryless nodes. > > NUMA powerpc non-boot CPU's cpu_to_node/cpu_to_mem is only accurate > after start_secondary(), similar to ia64, which is invoked via > smp_init(). > > Commit 6ee0578b4daae ("workqueue: mark init_workqueues() as > early_initcall()") made init_workqueues() be invoked via > do_pre_smp_initcalls(), which is obviously before the secondary > processors are online. > ... > Therefore, when init_workqueues() runs, it sees all CPUs as being on > Node 0. On LPARs or KVM guests where Node 0 is memoryless, this leads to > a high number of slab deactivations > (http://www.spinics.net/lists/linux-mm/msg67489.html)." > > Christoph/Tejun, do you see the issue I'm referring to? Is my analysis > correct? It seems like regardless of CONFIG_USE_PERCPU_NUMA_NODE_ID, we > have to be especially careful that users of cpu_to_{node,mem} and > related APIs run *after* correct values are stored for all used CPUs? Without delving into the code, yes, NUMA info should be set up as soon as possible before major allocations happen. All allocations which happen beforehand would naturally be done with bogus NUMA information. Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>