On 02.11.21 15:12, Michal Hocko wrote:
On Tue 02-11-21 14:41:25, David Hildenbrand wrote:
On 02.11.21 14:25, Michal Hocko wrote:
[...]
Btw. do you plan to send a patch for pcp allocator to use cpu_to_mem?
You mean s/cpu_to_node/cpu_to_mem/ or also handling offline nids?
just cpu_to_mem
cpu_to_mem() corresponds to cpu_to_node() unless on ia64+ppc IIUC, so it won't help for this very report.
Weird, x86 allows memory less nodes as well. But you are right there is nothing selecting HAVE_MEMORYLESS_NODES neither do I see any arch specific implementation. I have to say that I have forgot all those nasty details... Sigh
I assume HAVE_MEMORYLESS_NODES is just an optimization to set a preferred memory node for memoryless nodes. It doesn't imply that we cannot have memoryless nodes otherwise.
I suspect just as so often, the config option name doesn't express what it really does.