Re: powerpc/mm: Update the FORCE_MAX_ZONEORDER range to enable hugetlb

2016-09-20 Thread Michael Ellerman
On Mon, 2016-19-09 at 17:31:33 UTC, "Aneesh Kumar K.V" wrote: > For hugetlb to work with 4K page size, we need the MAX_ORDER to be more > than 13. When switching from a 64K page size to 4K linux page size using > make nconfig, we endup with a CONFIG_FORCE_MAX_ZONEORDER value of 9. > This results

Re: [PATCH] powerpc/mm: Update the FORCE_MAX_ZONEORDER range to enable hugetlb

2016-09-19 Thread Balbir Singh
On 20/09/16 12:52, Aneesh Kumar K.V wrote: > Balbir Singh writes: > >> On 20/09/16 03:31, Aneesh Kumar K.V wrote: [...] >> >> Do we need the range to be 12 13? > > static inline bool hstate_is_gigantic(struct hstate *h) > { > return huge_page_order(h) >=

Re: [PATCH] powerpc/mm: Update the FORCE_MAX_ZONEORDER range to enable hugetlb

2016-09-19 Thread Aneesh Kumar K.V
Balbir Singh writes: > On 20/09/16 03:31, Aneesh Kumar K.V wrote: >> For hugetlb to work with 4K page size, we need the MAX_ORDER to be more >> than 13. When switching from a 64K page size to 4K linux page size using >> make nconfig, we endup with a

Re: [PATCH] powerpc/mm: Update the FORCE_MAX_ZONEORDER range to enable hugetlb

2016-09-19 Thread Balbir Singh
On 20/09/16 03:31, Aneesh Kumar K.V wrote: > For hugetlb to work with 4K page size, we need the MAX_ORDER to be more > than 13. When switching from a 64K page size to 4K linux page size using > make nconfig, we endup with a CONFIG_FORCE_MAX_ZONEORDER value of 9. > This results in 16M hugepage to

[PATCH] powerpc/mm: Update the FORCE_MAX_ZONEORDER range to enable hugetlb

2016-09-19 Thread Aneesh Kumar K.V
For hugetlb to work with 4K page size, we need the MAX_ORDER to be more than 13. When switching from a 64K page size to 4K linux page size using make nconfig, we endup with a CONFIG_FORCE_MAX_ZONEORDER value of 9. This results in 16M hugepage to be considered as a gigantic huge page which inturn