Re: [Patch V3 2/9] kernel/profile.c: Replace cpu_to_mem() with cpu_to_node()

2015-10-08 Thread Jiang Liu
On 2015/8/20 8:00, David Rientjes wrote: > On Wed, 19 Aug 2015, Jiang Liu wrote: > >> On 2015/8/18 8:31, David Rientjes wrote: >>> On Mon, 17 Aug 2015, Jiang Liu wrote: >>> Function profile_cpu_callback() allocates memory without specifying __GFP_THISNODE flag, so replace cpu_to_mem() wi

Re: [Patch V3 2/9] kernel/profile.c: Replace cpu_to_mem() with cpu_to_node()

2015-08-19 Thread David Rientjes
On Wed, 19 Aug 2015, Jiang Liu wrote: > On 2015/8/18 8:31, David Rientjes wrote: > > On Mon, 17 Aug 2015, Jiang Liu wrote: > > > >> Function profile_cpu_callback() allocates memory without specifying > >> __GFP_THISNODE flag, so replace cpu_to_mem() with cpu_to_node() > >> because cpu_to_mem() ma

Re: [Patch V3 2/9] kernel/profile.c: Replace cpu_to_mem() with cpu_to_node()

2015-08-19 Thread Jiang Liu
On 2015/8/18 8:31, David Rientjes wrote: > On Mon, 17 Aug 2015, Jiang Liu wrote: > >> Function profile_cpu_callback() allocates memory without specifying >> __GFP_THISNODE flag, so replace cpu_to_mem() with cpu_to_node() >> because cpu_to_mem() may cause suboptimal memory allocation if >> there's

Re: [Patch V3 2/9] kernel/profile.c: Replace cpu_to_mem() with cpu_to_node()

2015-08-17 Thread David Rientjes
On Mon, 17 Aug 2015, Jiang Liu wrote: > Function profile_cpu_callback() allocates memory without specifying > __GFP_THISNODE flag, so replace cpu_to_mem() with cpu_to_node() > because cpu_to_mem() may cause suboptimal memory allocation if > there's no free memory on the node returned by cpu_to_mem