Re: [PATCH v4] pseries/hotplug-memory: hot-add: skip redundant LMB lookup

2020-10-06 Thread Michael Ellerman
On Wed, 16 Sep 2020 09:51:22 -0500, Scott Cheloha wrote: > During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid() > to determine which node id (nid) to use when later calling __add_memory(). > > This is wasteful. On pseries, memory_add_physaddr_to_nid() finds an > appropriate

Re: [PATCH v4] pseries/hotplug-memory: hot-add: skip redundant LMB lookup

2020-10-06 Thread Michael Ellerman
On Wed, 16 Sep 2020 09:51:22 -0500, Scott Cheloha wrote: > During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid() > to determine which node id (nid) to use when later calling __add_memory(). > > This is wasteful. On pseries, memory_add_physaddr_to_nid() finds an > appropriate

Re: [PATCH v4] pseries/hotplug-memory: hot-add: skip redundant LMB lookup

2020-09-17 Thread Laurent Dufour
Le 16/09/2020 à 16:51, Scott Cheloha a écrit : During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid() to determine which node id (nid) to use when later calling __add_memory(). This is wasteful. On pseries, memory_add_physaddr_to_nid() finds an appropriate nid for a given

[PATCH v4] pseries/hotplug-memory: hot-add: skip redundant LMB lookup

2020-09-16 Thread Scott Cheloha
During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid() to determine which node id (nid) to use when later calling __add_memory(). This is wasteful. On pseries, memory_add_physaddr_to_nid() finds an appropriate nid for a given address by looking up the LMB containing the