On Thu, 29 Oct 2020 12:34:51 -0700 John Stultz wrote:
As for your comment on HPAGE_PMD_ORDER (9 on arm64/arm) and PAGE_ALLOC_COSTLY_ORDER(3), I'm not totally sure I understand your question? Are you suggesting those values would be more natural orders to choose from?
The numbers, 9 and 3, are not magic themselves but under the mm diretory they draw more attentions than others do. Sometimes it would take two minutes for me to work out that HPAGE_PMD_ORDER does not mean 1MiB, on platforms like arm64 or not.