From patchwork Wed Jan 29 22:41:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank van der Linden X-Patchwork-Id: 13954205 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 156ECC02190 for ; Wed, 29 Jan 2025 22:42:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DCE0E280099; Wed, 29 Jan 2025 17:42:33 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D573828008C; Wed, 29 Jan 2025 17:42:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B5C60280099; Wed, 29 Jan 2025 17:42:33 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8CE5C28008C for ; Wed, 29 Jan 2025 17:42:33 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EBB0F804BC for ; Wed, 29 Jan 2025 22:42:32 +0000 (UTC) X-FDA: 83061964944.09.E8CC08A Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf11.hostedemail.com (Postfix) with ESMTP id 1D7534000C for ; Wed, 29 Jan 2025 22:42:30 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=afA1yHmI; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 31a6aZwQKCOAHXFNIQQING.EQONKPWZ-OOMXCEM.QTI@flex--fvdl.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=31a6aZwQKCOAHXFNIQQING.EQONKPWZ-OOMXCEM.QTI@flex--fvdl.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738190551; a=rsa-sha256; cv=none; b=RpD8iZgbs41smi++CgtrOXhczURdBEWkI7rMf1ztWzxjwxL4J92c/2dhY5UV4FEuU4So0g AyunAtsVGLaDRe6sZUFdIlZX4V9nLQ1fXvKz8mzpDDAk7yl/I8jndZHDr8tUWGTMCHP5X2 kxC6uAyWGVkfrWSt9IsLFo/6/DNzBTQ= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=afA1yHmI; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 31a6aZwQKCOAHXFNIQQING.EQONKPWZ-OOMXCEM.QTI@flex--fvdl.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=31a6aZwQKCOAHXFNIQQING.EQONKPWZ-OOMXCEM.QTI@flex--fvdl.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738190551; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=pAg9E+yVjs4X3E0Z5lKinfq3rHknPoyNwrdyz8zbKYE=; b=bKL+mKVvqkhrqd9CS811oycHREoy10vN9BFYGvHvNaBjVdlAOypyyzTVp900ju7F9JxdRX q1JcGju/IODoR2A4b9i8d6QGOZ4QAk5/9EMoo4UmF9hrhVGcoH7U4ueq9pQWrg52ensKSX roMIVXnbOsxdBTj2Nzw4Y6Rvga6SsaU= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2166e907b5eso2951545ad.3 for ; Wed, 29 Jan 2025 14:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738190550; x=1738795350; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=pAg9E+yVjs4X3E0Z5lKinfq3rHknPoyNwrdyz8zbKYE=; b=afA1yHmIPjwNMDvS5Xr/z/3/r9ud9tDxt3e9L2xwjZqD33j8Tu36Jmwu+sWlGFQJqo v5UAkpzEJZB0K91Tq45YQcvoj4Foyrwq+SoSZd8heDvXoJbK5h4q3KrAeUKHBE5nyGr4 1iQpp55/sMLUhxT4568s+NOkNYQ1wNE6y8FdRwtfPsxxdqg4R7Qfav1Wt40cG2oUyzpR QxqJH1V7Ma9BAPqcjQ6Kf/+Tk970m84mDtRUJLN/qaF9WBDPvwUW3IE5+B7ILz/psNo7 bqQvnpcAD3ihzbF318lA/Jum/qWCoeTYzr6D+VyCl6WK7qf9CvK2QnzN9Tq49DkE2jHE 0rww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738190550; x=1738795350; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pAg9E+yVjs4X3E0Z5lKinfq3rHknPoyNwrdyz8zbKYE=; b=iB1c5lkxYCZFx+0E8+Q5iyZdjKfiuvcynHgZN4dTmxRv4Y2QWOksPCLaefMyVlFaJv e7tF7PtW+lAhxLUnDTE2ivpX68dKcoWt2i8qX47n7W+uhVHgmse2MK4peUshIKyuKBcA QnR0epNjVOl6o+w6DXkzHXPdbmUqevmeykMQKQqcINxqveuBNKgoSDubf6tPToiGjcrc XIg7Q8PTYbWLaAeQOhazJHobHb26aUjUr6LM95nbGwQfmIXdNDIiC3SOCO1KhkvO/Kb/ Bnzy39lBkwhRoRknGtrjL/LXUIfC6ZPHctQOWRDzZ8jaE+gMf1sFUGMnDOkBMMpHAtud 7IhA== X-Forwarded-Encrypted: i=1; AJvYcCXBQiM50OLHHTxRP1lOVMWWDQLZ/G+whTlPfJuXOiw8Z0l4iEQvXpafV7oDf53dbhT7YUwO6X7LFA==@kvack.org X-Gm-Message-State: AOJu0Yx4JbpcABv45Y206EVBELTcqxg7ifkz7Amu4V8SeNiJOkTQiaDN 3PYlb8yAhPMhv39VIyoyRWZazMMCVuzrcsu5qapb5liBjTtySj6eCC8Fkx3My3+HYHGl4Q== X-Google-Smtp-Source: AGHT+IEltS0buyyeuzvXAhB1x/AMS4GCVgwLNavg/F7vz30dsXHueQ5FkQjVnKOZ3LafqctlXAj1MQpa X-Received: from pfbbw12.prod.google.com ([2002:a05:6a00:408c:b0:72d:7bb4:ffc]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:2e15:b0:728:e40d:c5fc with SMTP id d2e1a72fcca58-72fd0c7c61fmr7331538b3a.22.1738190549941; Wed, 29 Jan 2025 14:42:29 -0800 (PST) Date: Wed, 29 Jan 2025 22:41:37 +0000 In-Reply-To: <20250129224157.2046079-1-fvdl@google.com> Mime-Version: 1.0 References: <20250129224157.2046079-1-fvdl@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250129224157.2046079-9-fvdl@google.com> Subject: [PATCH v2 08/28] mm/hugetlb: convert cmdline parameters from setup to early From: Frank van der Linden To: akpm@linux-foundation.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: yuzhao@google.com, usamaarif642@gmail.com, joao.m.martins@oracle.com, roman.gushchin@linux.dev, Frank van der Linden X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1D7534000C X-Stat-Signature: hpumuk6g5jrj5pdqinkmnor6oohg7rmi X-Rspam-User: X-HE-Tag: 1738190550-516594 X-HE-Meta: U2FsdGVkX1/bRcQGSpWPG+y9P1l2yuD8B7aGZJHqHuBKOHSjTOJTIqiv9plsiveAZG1O5DJ/zYsvZqi3tXFmFfSw/aVFULTJ93PNpRBfGQN0+OY99MRcv+RJGm7SfhaeshCv0S95hn2gZIzEMdzfNeOHCLMNVApx2c92854UhDfKlErCCla986ieA0XYVC/IButJMIPLeb0QLtGuuOG5h/ji6D9zGTX+2GpNuMS9num4UhvA1zcg28GIpFS+YScqdsl+sNiUQPqc5cN+EUSMLdLFsnMy3vu1YboLvGgl6t/rpQ0wMNGOv/P0s1usAMOIwC2/S+Q0HAknnD95vj6FgZzAH3YM+dHp0TbUNg+ro0VY5sbhy8DbAl6GHmJcfDGLCcMxN6Bb01MLzl7Nb0iBBYTZIP79vBYz2kHgIyDTLydM2XZZG4HvqLnh1JhgblsVLd7+MjHe7pMSxzlFu30GbMU7kaGgBXwAMUgsL/LRPPHlMv2o8nCIWwlTT2y35RVnV4tZRnzGIlLelnW5yUgdnEwyV7ORppo5hGXpmsneZhJK6x8tzrBuot3gutyTZszTOQalSftBNzRLDe4vHOucItsxe/hLQnhUDE7wdYc9S2kKUQ6aP+nvmTru3dYl7HIl4C4iU7SFmFT8rL8B2onmLeTCAJSDR/FD/JXTZJWexK/unRa9zFhgGVK/qYUbPLJOKZKn0GuGL/SaOTed5gdjmr/2NCeV8U6urIcytSLDFbH0B7BJ7pQTBWBBpNu1WC50qYJdel2MDR8Ffv0hmUdkRu5Di61+/ZST1yGB38hxqMm/+dB/hlz+iuN+Uc6zqXRtHY1+jp3hB4+UdoP6MIfbqLiaFlgjFDV2Af+X1YX/DN0MBI3T5prpDbG98xGLWvZVjXHuHOdjmg5+CqJ0Oqf4ZXlXYS+oshP55V6cedrXJltU+FlLTET+pt/Rd45O7ekHGKoByjzlXw4oSEq8AWc d6JgC4KP Yfkbqd3YUnvySw/CEo+Fd9spqcNvDSZxfBIG/CXyW2WPcl7LKAFoYRAg9MD+lHjsMY+lbGEwzW+Qr3Kjabp4uFx9w5QCm0Zd1LtXmGgAGAKPOmkh0m3IfNfUfNTB2mEZWXMcs0pgQVirtzvaLVkqtFAQ4FIIe9GaK1yY6YY/1ZTCtB79MTvWAAtQfD0Z2Vv2QxoZrKrN43eeNDEW67Ge3XK0+J6X6Tzbr/IpJk8+d/s5s44nI5SbFM9IjFGanvJimupN3xSS5E6DGD0ssECh/DWUnAbq+FyoVSLhPRTTmmpLtMd+9unvEr+gfYLaV99sI/wvwEnk8uTjP+EBhK0gg2vmEqoUcvRmDgdlQEQ7p5k34F5BbriaMeYyq3dRPiUSN0JImCa0OkmJZqZeYPSoYKIRsEbRFLmVJZMs6Vqr2+wLpCwHXzMH+79WGSFRIHySJFsLM9WUSSmB9MOwhv6DnyQjMhzhWtjs9Mo6u/ML2q8qRu5Cb1PKtb4w7/iRNum1asdni93wOvy++rEHDgYTWYvrIqA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Convert the cmdline parameters (hugepagesz, hugepages, default_hugepagesz and hugetlb_free_vmemmap) to early parameters. Since parse_early_param might run before MMU setups on some platforms (powerpc), validation of huge page sizes as specified in command line parameters would fail. So instead, for the hstate-related values, just record the them and parse them on demand, from hugetlb_bootmem_alloc. The allocation of hugetlb bootmem pages is now done in hugetlb_bootmem_alloc, which is called explicitly at the start of mm_core_init(). core_initcall would be too late, as that happens with memblock already torn down. This change will allow earlier allocation and initialization of bootmem hugetlb pages later on. No functional change intended. Signed-off-by: Frank van der Linden --- include/linux/hugetlb.h | 6 ++ mm/hugetlb.c | 133 +++++++++++++++++++++++++++++++--------- mm/hugetlb_vmemmap.c | 6 +- mm/mm_init.c | 3 + 4 files changed, 119 insertions(+), 29 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index ec8c0ccc8f95..9cd7c9dacb88 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -174,6 +174,8 @@ struct address_space *hugetlb_folio_mapping_lock_write(struct folio *folio); extern int sysctl_hugetlb_shm_group; extern struct list_head huge_boot_pages[MAX_NUMNODES]; +void hugetlb_bootmem_alloc(void); + /* arch callbacks */ #ifndef CONFIG_HIGHPTE @@ -1250,6 +1252,10 @@ static inline bool hugetlbfs_pagecache_present( { return false; } + +static inline void hugetlb_bootmem_alloc(void) +{ +} #endif /* CONFIG_HUGETLB_PAGE */ static inline spinlock_t *huge_pte_lock(struct hstate *h, diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 20d54eaf2bad..c16ed9790022 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -62,6 +63,24 @@ static unsigned long hugetlb_cma_size __initdata; __initdata struct list_head huge_boot_pages[MAX_NUMNODES]; +/* + * Due to ordering constraints across the init code for various + * architectures, hugetlb hstate cmdline parameters can't simply + * be early_param. early_param might call the setup function + * before valid hugetlb page sizes are determined, leading to + * incorrect rejection of valid hugepagesz= options. + * + * So, record the parameters early and consume them whenever the + * init code is ready for them, by calling hugetlb_parse_params(). + */ + +/* one (hugepagesz=,hugepages=) pair per hstate, one default_hugepagesz */ +#define HUGE_MAX_CMDLINE_ARGS (2 * HUGE_MAX_HSTATE + 1) +struct hugetlb_cmdline { + char *val; + int (*setup)(char *val); +}; + /* for command line parsing */ static struct hstate * __initdata parsed_hstate; static unsigned long __initdata default_hstate_max_huge_pages; @@ -69,6 +88,20 @@ static bool __initdata parsed_valid_hugepagesz = true; static bool __initdata parsed_default_hugepagesz; static unsigned int default_hugepages_in_node[MAX_NUMNODES] __initdata; +static char hstate_cmdline_buf[COMMAND_LINE_SIZE] __initdata; +static int hstate_cmdline_index __initdata; +static struct hugetlb_cmdline hugetlb_params[HUGE_MAX_CMDLINE_ARGS] __initdata; +static int hugetlb_param_index __initdata; +static __init int hugetlb_add_param(char *s, int (*setup)(char *val)); +static __init void hugetlb_parse_params(void); + +#define hugetlb_early_param(str, func) \ +static __init int func##args(char *s) \ +{ \ + return hugetlb_add_param(s, func); \ +} \ +early_param(str, func##args) + /* * Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages, * free_huge_pages, and surplus_huge_pages. @@ -3488,6 +3521,8 @@ static void __init hugetlb_hstate_alloc_pages(struct hstate *h) for (i = 0; i < MAX_NUMNODES; i++) INIT_LIST_HEAD(&huge_boot_pages[i]); + h->next_nid_to_alloc = first_online_node; + h->next_nid_to_free = first_online_node; initialized = true; } @@ -4550,8 +4585,6 @@ void __init hugetlb_add_hstate(unsigned int order) for (i = 0; i < MAX_NUMNODES; ++i) INIT_LIST_HEAD(&h->hugepage_freelists[i]); INIT_LIST_HEAD(&h->hugepage_activelist); - h->next_nid_to_alloc = first_online_node; - h->next_nid_to_free = first_online_node; snprintf(h->name, HSTATE_NAME_LEN, "hugepages-%lukB", huge_page_size(h)/SZ_1K); @@ -4576,6 +4609,42 @@ static void __init hugepages_clear_pages_in_node(void) } } +static __init int hugetlb_add_param(char *s, int (*setup)(char *)) +{ + size_t len; + char *p; + + if (hugetlb_param_index >= HUGE_MAX_CMDLINE_ARGS) + return -EINVAL; + + len = strlen(s) + 1; + if (len + hstate_cmdline_index > sizeof(hstate_cmdline_buf)) + return -EINVAL; + + p = &hstate_cmdline_buf[hstate_cmdline_index]; + memcpy(p, s, len); + hstate_cmdline_index += len; + + hugetlb_params[hugetlb_param_index].val = p; + hugetlb_params[hugetlb_param_index].setup = setup; + + hugetlb_param_index++; + + return 0; +} + +static __init void hugetlb_parse_params(void) +{ + int i; + struct hugetlb_cmdline *hcp; + + for (i = 0; i < hugetlb_param_index; i++) { + hcp = &hugetlb_params[i]; + + hcp->setup(hcp->val); + } +} + /* * hugepages command line processing * hugepages normally follows a valid hugepagsz or default_hugepagsz @@ -4595,7 +4664,7 @@ static int __init hugepages_setup(char *s) if (!parsed_valid_hugepagesz) { pr_warn("HugeTLB: hugepages=%s does not follow a valid hugepagesz, ignoring\n", s); parsed_valid_hugepagesz = true; - return 1; + return -EINVAL; } /* @@ -4649,24 +4718,16 @@ static int __init hugepages_setup(char *s) } } - /* - * Global state is always initialized later in hugetlb_init. - * But we need to allocate gigantic hstates here early to still - * use the bootmem allocator. - */ - if (hugetlb_max_hstate && hstate_is_gigantic(parsed_hstate)) - hugetlb_hstate_alloc_pages(parsed_hstate); - last_mhp = mhp; - return 1; + return 0; invalid: pr_warn("HugeTLB: Invalid hugepages parameter %s\n", p); hugepages_clear_pages_in_node(); - return 1; + return -EINVAL; } -__setup("hugepages=", hugepages_setup); +hugetlb_early_param("hugepages", hugepages_setup); /* * hugepagesz command line processing @@ -4685,7 +4746,7 @@ static int __init hugepagesz_setup(char *s) if (!arch_hugetlb_valid_size(size)) { pr_err("HugeTLB: unsupported hugepagesz=%s\n", s); - return 1; + return -EINVAL; } h = size_to_hstate(size); @@ -4700,7 +4761,7 @@ static int __init hugepagesz_setup(char *s) if (!parsed_default_hugepagesz || h != &default_hstate || default_hstate.max_huge_pages) { pr_warn("HugeTLB: hugepagesz=%s specified twice, ignoring\n", s); - return 1; + return -EINVAL; } /* @@ -4710,14 +4771,14 @@ static int __init hugepagesz_setup(char *s) */ parsed_hstate = h; parsed_valid_hugepagesz = true; - return 1; + return 0; } hugetlb_add_hstate(ilog2(size) - PAGE_SHIFT); parsed_valid_hugepagesz = true; - return 1; + return 0; } -__setup("hugepagesz=", hugepagesz_setup); +hugetlb_early_param("hugepagesz", hugepagesz_setup); /* * default_hugepagesz command line input @@ -4731,14 +4792,14 @@ static int __init default_hugepagesz_setup(char *s) parsed_valid_hugepagesz = false; if (parsed_default_hugepagesz) { pr_err("HugeTLB: default_hugepagesz previously specified, ignoring %s\n", s); - return 1; + return -EINVAL; } size = (unsigned long)memparse(s, NULL); if (!arch_hugetlb_valid_size(size)) { pr_err("HugeTLB: unsupported default_hugepagesz=%s\n", s); - return 1; + return -EINVAL; } hugetlb_add_hstate(ilog2(size) - PAGE_SHIFT); @@ -4755,17 +4816,33 @@ static int __init default_hugepagesz_setup(char *s) */ if (default_hstate_max_huge_pages) { default_hstate.max_huge_pages = default_hstate_max_huge_pages; - for_each_online_node(i) - default_hstate.max_huge_pages_node[i] = - default_hugepages_in_node[i]; - if (hstate_is_gigantic(&default_hstate)) - hugetlb_hstate_alloc_pages(&default_hstate); + /* + * Since this is an early parameter, we can't check + * NUMA node state yet, so loop through MAX_NUMNODES. + */ + for (i = 0; i < MAX_NUMNODES; i++) { + if (default_hugepages_in_node[i] != 0) + default_hstate.max_huge_pages_node[i] = + default_hugepages_in_node[i]; + } default_hstate_max_huge_pages = 0; } - return 1; + return 0; +} +hugetlb_early_param("default_hugepagesz", default_hugepagesz_setup); + +void __init hugetlb_bootmem_alloc(void) +{ + struct hstate *h; + + hugetlb_parse_params(); + + for_each_hstate(h) { + if (hstate_is_gigantic(h)) + hugetlb_hstate_alloc_pages(h); + } } -__setup("default_hugepagesz=", default_hugepagesz_setup); static unsigned int allowed_mems_nr(struct hstate *h) { diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c index 7735972add01..5b484758f813 100644 --- a/mm/hugetlb_vmemmap.c +++ b/mm/hugetlb_vmemmap.c @@ -444,7 +444,11 @@ DEFINE_STATIC_KEY_FALSE(hugetlb_optimize_vmemmap_key); EXPORT_SYMBOL(hugetlb_optimize_vmemmap_key); static bool vmemmap_optimize_enabled = IS_ENABLED(CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON); -core_param(hugetlb_free_vmemmap, vmemmap_optimize_enabled, bool, 0); +static int __init hugetlb_vmemmap_optimize_param(char *buf) +{ + return kstrtobool(buf, &vmemmap_optimize_enabled); +} +early_param("hugetlb_free_vmemmap", hugetlb_vmemmap_optimize_param); static int __hugetlb_vmemmap_restore_folio(const struct hstate *h, struct folio *folio, unsigned long flags) diff --git a/mm/mm_init.c b/mm/mm_init.c index 2630cc30147e..d2dee53e95dd 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "internal.h" #include "slab.h" #include "shuffle.h" @@ -2641,6 +2642,8 @@ static void __init mem_init_print_info(void) */ void __init mm_core_init(void) { + hugetlb_bootmem_alloc(); + /* Initializations relying on SMP setup */ BUILD_BUG_ON(MAX_ZONELISTS > 2); build_all_zonelists(NULL);