RE: [PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-10 Thread Song Bao Hua (Barry Song)
uxarm ; linux-arm-ker...@lists.infradead.org; > Roman Gushchin ; Catalin Marinas > ; Will Deacon ; Thomas Gleixner > ; Ingo Molnar ; Borislav Petkov > ; H . Peter Anvin ; Mike Kravetz > ; Mike Rapoport ; Jonathan > Cameron > Subject: Re: [PATCH v2] mm/hugetlb: split hugetlb_cma in nod

Re: [PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-10 Thread Anshuman Khandual
On 07/10/2020 09:20 AM, Barry Song wrote: > Rather than splitting huge_cma in online nodes, it is better to do it in > nodes with memory. > Without this patch, for an ARM64 server with four numa nodes and only > node0 has memory. If I set hugetlb_cma=4G in bootargs, > > without this patch, I

[PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-09 Thread Barry Song
Rather than splitting huge_cma in online nodes, it is better to do it in nodes with memory. Without this patch, for an ARM64 server with four numa nodes and only node0 has memory. If I set hugetlb_cma=4G in bootargs, without this patch, I got the below printk: hugetlb_cma: reserve 4096 MiB, up to