Re: [PATCH V2] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-24 Thread Yunfeng Ye
On 2019/9/25 14:36, Mike Rapoport wrote: > On Tue, Sep 24, 2019 at 04:09:32PM +0800, Yunfeng Ye wrote: >> sparse_buffer_init() use memblock_alloc_try_nid_raw() to allocate memory >> for page management structure, if memory allocation fails from specified >> node, it will fall back to allocate fr

Re: [PATCH V2] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-24 Thread Mike Rapoport
On Tue, Sep 24, 2019 at 04:09:32PM +0800, Yunfeng Ye wrote: > sparse_buffer_init() use memblock_alloc_try_nid_raw() to allocate memory > for page management structure, if memory allocation fails from specified > node, it will fall back to allocate from other nodes. > > Normally, the page managemen

[PATCH V2] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-24 Thread Yunfeng Ye
sparse_buffer_init() use memblock_alloc_try_nid_raw() to allocate memory for page management structure, if memory allocation fails from specified node, it will fall back to allocate from other nodes. Normally, the page management structure will not exceed 2% of the total memory, but a large contin