cleanup hugetlb_vmemmap
Subsystems (10)
cover cleanup hugetlb_vmemmap
This series is based on next-20220404.
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze" is more clear. In this series, cheanup related codes to make it more clear and expressive. This is suggested by David.
Muchun Song (3):
mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
mm: hugetlb_vmemmap: cleanup hugetlb_free_vmemmap_enabled*
mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
Documentation/admin-guide/kernel-parameters.txt | 4 +- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 4 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 +++---- include/linux/hugetlb.h | 4 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 18 ++++---- mm/Makefile | 2 +- mm/hugetlb.c | 10 ++--- mm/hugetlb_vmemmap.c | 56 ++++++++++++------------- mm/hugetlb_vmemmap.h | 24 +++++------ mm/memory_hotplug.c | 2 +- mm/sparse-vmemmap.c | 4 +- 16 files changed, 76 insertions(+), 78 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/3 mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". And some function names are prefixed with "huge_page" instead of "hugetlb", it is easily to be confused with THP. In this patch , cheanup related functions to make code more clear and expressive.
--- include/linux/hugetlb.h | 2 +- mm/hugetlb.c | 10 +++++----- mm/hugetlb_vmemmap.c | 42 ++++++++++++++++++++---------------------- mm/hugetlb_vmemmap.h | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 38 deletions(-)
include/linux/hugetlb.h +1 -1
@@ -618,7 +618,7 @@ struct hstate {unsigned int free_huge_pages_node[MAX_NUMNODES ];unsigned int surplus_huge_pages_node[MAX_NUMNODES ];#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP -unsigned int nr_free_vmemmap_pages; +unsigned int optimize_vmemmap_pages;#endif #ifdef CONFIG_CGROUP_HUGETLB /* cgroup control files */
mm/hugetlb.c +5 -5
@@ -1540,7 +1540,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page)if (hstate_is_gigantic (h) && !gigantic_page_runtime_supported ())return ; -if (alloc_huge_page_vmemmap (h, page)) { +if (hugetlb_vmemmap_alloc (h, page)) {spin_lock_irq (&hugetlb_lock);/* * If we cannot allocate vmemmap pages, just refuse to free the
@@ -1617,7 +1617,7 @@ static DECLARE_WORK(free_hpage_work, free_hpage_workfn);static inline void flush_free_hpage_work (struct hstate *h) { -if (free_vmemmap_pages_per_hpage (h)) +if (hugetlb_optimize_vmemmap_pages (h))flush_work (&free_hpage_work); }
@@ -1739,7 +1739,7 @@ static void __prep_account_new_huge_page(struct hstate *h, int nid)static void __prep_new_huge_page (struct hstate *h,struct page *page) { -free_huge_page_vmemmap (h, page); +hugetlb_vmemmap_free (h, page);INIT_LIST_HEAD (&page->lru);set_compound_page_dtor (page,HUGETLB_PAGE_DTOR );hugetlb_set_page_subpool (page,NULL );
@@ -2112,7 +2112,7 @@ int dissolve_free_huge_page(struct page *page)* Attempt to allocate vmemmmap here so that we can take * appropriate action on failure. */ - rc =alloc_huge_page_vmemmap (h, head); + rc =hugetlb_vmemmap_alloc (h, head);if (!rc) {/* * Move PageHWPoison flag from head page to the raw
@@ -3427,7 +3427,7 @@ static int demote_free_huge_page(struct hstate *h, struct page *page)remove_hugetlb_page_for_demote (h, page, false);spin_unlock_irq (&hugetlb_lock); - rc =alloc_huge_page_vmemmap (h, page); + rc =hugetlb_vmemmap_alloc (h, page);if (rc) {/* Allocation of vmemmmap failed, we can not demote page */ spin_lock_irq (&hugetlb_lock);
mm/hugetlb_vmemmap.c +20 -22
87 lines not on this page · raw message
mm/hugetlb_vmemmap.h +10 -10
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 /* -* Free some vmemmap pages of HugeTLB +* Optimize vmemmap pages associated with HugeTLB * * Copyright (c) 2020, Bytedance. All rights reserved. *
@@ -11,25 +11,25 @@#include <linux/hugetlb.h> #ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP -int alloc_huge_page_vmemmap (struct hstate *h,struct page *head); -void free_huge_page_vmemmap (struct hstate *h,struct page *head); +int hugetlb_vmemmap_alloc (struct hstate *h,struct page *head); +void hugetlb_vmemmap_free (struct hstate *h,struct page *head);void hugetlb_vmemmap_init (struct hstate *h);/* -* How many vmemmap pages associated with a HugeTLB page that can be freed -* to the buddy allocator. +* How many vmemmap pages associated with a HugeTLB page that can be +* optimized and freed to the buddy allocator. */ -static inline unsigned int free_vmemmap_pages_per_hpage (struct hstate *h) +static inline unsigned int hugetlb_optimize_vmemmap_pages (struct hstate *h) { -return h->nr_free_vmemmap_pages; +return h->optimize_vmemmap_pages; }#else -static inline int alloc_huge_page_vmemmap (struct hstate *h,struct page *head) +static inline int hugetlb_vmemmap_alloc (struct hstate *h,struct page *head) {return 0 ; } -static inline void free_huge_page_vmemmap (struct hstate *h,struct page *head) +static inline void hugetlb_vmemmap_free (struct hstate *h,struct page *head) { }
@@ -37,7 +37,7 @@ static inline void hugetlb_vmemmap_init(struct hstate *h) { } -static inline unsigned int free_vmemmap_pages_per_hpage (struct hstate *h) +static inline unsigned int hugetlb_optimize_vmemmap_pages (struct hstate *h) {return 0 ; }
Signature · 1 line
2.11.0
Re: [PATCH 1/3] mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
Quoted 5 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". And some function names are prefixed with "
huge_page" instead of "hugetlb", it is easily to be confused with THP. In this patch , cheanup related functions to make code more clear and expressive.
Some typos in the commit message. Might be better as:
The keyword "free" is not expressive enough to describe the feature of optimizing vmemmap pages associated with each HugeTLB page. Rename the keyword to "optimize".
Some function names are prefixed with "huge_page" instead of "hugetlb". These can easily be confused with THP. Change function names to make code more clear and expressive.
Quoted 7 lines
Signed-off-by Muchun Song <[email protected]>--- include/linux/hugetlb.h | 2 +- mm/hugetlb.c | 10 +++++----- mm/hugetlb_vmemmap.c | 42 ++++++++++++++++++++---------------------- mm/hugetlb_vmemmap.h | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 38 deletions(-)
Chnages look fine,
Signature · 1 line
Mike Kravetz
Re: [PATCH 1/3] mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
Quoted 7 lines · Mike Kravetz
Quoted 5 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". And some function names are prefixed with "
huge_page" instead of "hugetlb", it is easily to be confused with THP. In this patch , cheanup related functions to make code more clear and expressive.
Quoted 8 lines
Some typos in the commit message. Might be better as:
The keyword "free" is not expressive enough to describe the feature of optimizing vmemmap pages associated with each HugeTLB page. Rename the keyword to "optimize".
Some function names are prefixed with "
huge_page" instead of "hugetlb". These can easily be confused with THP. Change function names to make code more clear and expressive.
Sorry for the long lines :(
Signature · 1 line
Mike Kravetz
Re: [PATCH 1/3] mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
In reply to Muchun SongQuoted 5 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". And some function names are prefixed with "
huge_page" instead of "hugetlb", it is easily to be confused with THP. In this patch , cheanup related functions to make code more clear and expressive.
No strong opinion (I remember I kicked of the discussion), but I was wondering if instead of alloc vs. free we could be using something like optimize vs. restore/rollback.
E.g., hugetlb_vmemmap_optimize() vs. hugetlb_vmemmap_restore().
Maybe there are other suggestions?
Quoted 14 lines
Signed-off-by Muchun Song <[email protected]>--- include/linux/hugetlb.h | 2 +- mm/hugetlb.c | 10 +++++----- mm/hugetlb_vmemmap.c | 42 ++++++++++++++++++++---------------------- mm/hugetlb_vmemmap.h | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 38 deletions(-)include/linux/hugetlb.h +0
-0
include/linux/hugetlb.h struct hstate { · line 621
Quoted 5 lines
include/linux/hugetlb.h +1
-1@@ -618,7 +618,7 @@ struct hstate {unsigned int free_huge_pages_node[MAX_NUMNODES ];unsigned int surplus_huge_pages_node[MAX_NUMNODES ];#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP -unsigned int nr_free_vmemmap_pages; +unsigned int optimize_vmemmap_pages;
I suggest converting that into a bool and just calling it
"bool optimize_vmemmap_pages".
You can easily compute what hugetlb_vmemmap_init() at runtime from the page and RESERVE_VMEMMAP_NR, right?
At least the calculation in alloc_huge_page_vmemmap() and free_huge_page_vmemmap() become *less* weird for me if the magic value RESERVE_VMEMMAP_NR isn't used explicitly for vmemmap_addr but implicitly for vmemmap_end.
Quoted 17 lines
include/linux/hugetlb.h +0
-0#endif #ifdef CONFIG_CGROUP_HUGETLB /* cgroup control files */ mm/hugetlb.c +1
-1@@ -1540,7 +1540,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page)if (hstate_is_gigantic (h) && !gigantic_page_runtime_supported ())return ; -if (alloc_huge_page_vmemmap (h, page)) { +if (hugetlb_vmemmap_alloc (h, page)) {spin_lock_irq (&hugetlb_lock);/* * If we cannot allocate vmemmap pages, just refuse to free the
mm/hugetlb.c static DECLARE_WORK(free_hpage_work, free_hpage_workfn); · line 1620
Quoted 5 lines
mm/hugetlb.c +1
-1@@ -1617,7 +1617,7 @@ static DECLARE_WORK(free_hpage_work, free_hpage_workfn);static inline void flush_free_hpage_work (struct hstate *h) { -if (free_vmemmap_pages_per_hpage (h)) +if (hugetlb_optimize_vmemmap_pages (h))
It might be reasonable to call that hugetlb_should_optimize_vmemmap() then, letting it return a bool.
Signature · 3 lines
Thanks, David / dhildenb
Re: [PATCH 1/3] mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
Quoted 7 lines · David Hildenbrand
Quoted 5 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". And some function names are prefixed with "
huge_page" instead of "hugetlb", it is easily to be confused with THP. In this patch , cheanup related functions to make code more clear and expressive.
Quoted 6 lines
No strong opinion (I remember I kicked of the discussion), but I was wondering if instead of alloc vs. free we could be using something like optimize vs. restore/rollback.
E.g.,
hugetlb_vmemmap_optimize()vs.hugetlb_vmemmap_restore().
I think it is a good suggestion.
Quoted 25 lines
Maybe there are other suggestions?
Quoted 14 lines
Signed-off-by Muchun Song <[email protected]>--- include/linux/hugetlb.h | 2 +- mm/hugetlb.c | 10 +++++----- mm/hugetlb_vmemmap.c | 42 ++++++++++++++++++++---------------------- mm/hugetlb_vmemmap.h | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 38 deletions(-)include/linux/hugetlb.h +0
-0include/linux/hugetlb.h struct hstate { · line 621
Quoted 5 lines
include/linux/hugetlb.h +1
-1@@ -618,7 +618,7 @@ struct hstate {unsigned int free_huge_pages_node[MAX_NUMNODES ];unsigned int surplus_huge_pages_node[MAX_NUMNODES ];#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP -unsigned int nr_free_vmemmap_pages; +unsigned int optimize_vmemmap_pages;I suggest converting that into a bool and just calling it
Quoted 5 lines
"bool
optimize_vmemmap_pages".You can easily compute what
hugetlb_vmemmap_init()at runtime from the page andRESERVE_VMEMMAP_NR, right?
Right. A little overhead, but hugetlb_vmemmap_alloc() is not hot path, maybe we can accept the increased overhead of calculating at runtime.
Hi Mike,
Do you have any objections on this? If no, I think we can do this in a separate patch.
Quoted 23 lines
At least the calculation in
alloc_huge_page_vmemmap()andfree_huge_page_vmemmap()become *less* weird for me if the magic valueRESERVE_VMEMMAP_NRisn't used explicitly forvmemmap_addrbut implicitly forvmemmap_end.Quoted 18 lines
include/linux/hugetlb.h +0
-0#endif #ifdef CONFIG_CGROUP_HUGETLB /* cgroup control files */ mm/hugetlb.c +1
-1@@ -1540,7 +1540,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page)if (hstate_is_gigantic (h) && !gigantic_page_runtime_supported ())return ; -if (alloc_huge_page_vmemmap (h, page)) { +if (hugetlb_vmemmap_alloc (h, page)) {spin_lock_irq (&hugetlb_lock);/* * If we cannot allocate vmemmap pages, just refuse to free the @@ -1617,7 +1617,7 @@ static DECLARE_WORK(free_hpage_work, free_hpage_workfn);
Quoted 8 lines
mm/hugetlb.c static DECLARE_WORK(free_hpage_work, free_hpage_workfn); · line 1620
Quoted 4 lines
mm/hugetlb.c +1
-1static inline void flush_free_hpage_work (struct hstate *h) { -if (free_vmemmap_pages_per_hpage (h)) +if (hugetlb_optimize_vmemmap_pages (h))It might be reasonable to call that
hugetlb_should_optimize_vmemmap()then, letting it return a bool.
How about the name of "hugetlb_vmemmap_optimizable()"? "should" seems to tell the user that this hugetlb should be optimized, however, optimization also depends on "hugetlb_free_vmemmap=on". "optimizable" seems to be more appropriate, right?
Thanks.
Re: [PATCH 1/3] mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
#endif
#ifdefCONFIG_CGROUP_HUGETLBinclude/linux/hugetlb.h +0
-0/* cgroup control files */ mm/hugetlb.c +1
-1@@ -1540,7 +1540,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page)if (hstate_is_gigantic (h) && !gigantic_page_runtime_supported ())return ; -if (alloc_huge_page_vmemmap (h, page)) { +if (hugetlb_vmemmap_alloc (h, page)) {spin_lock_irq (&hugetlb_lock);/* * If we cannot allocate vmemmap pages, just refuse to free the @@ -1617,7 +1617,7 @@ static DECLARE_WORK(free_hpage_work, free_hpage_workfn);Quoted 8 lines
mm/hugetlb.c static DECLARE_WORK(free_hpage_work, free_hpage_workfn); · line 1620
Quoted 4 lines
mm/hugetlb.c +1
-1static inline void flush_free_hpage_work (struct hstate *h) { -if (free_vmemmap_pages_per_hpage (h)) +if (hugetlb_optimize_vmemmap_pages (h))It might be reasonable to call that
hugetlb_should_optimize_vmemmap()then, letting it return a bool.
Quoted 4 lines
How about the name of "
hugetlb_vmemmap_optimizable()"? "should" seems to tell the user that this hugetlb should be optimized, however, optimization also depends on "hugetlb_free_vmemmap=on". "optimizable" seems to be more appropriate, right?
No strong opinion. Either is clearer to me compared to what we have right now :)
Signature · 3 lines
Thanks, David / dhildenb
PATCH 2/3 mm: hugetlb_vmemmap: cleanup hugetlb_free_vmemmap_enabled*
In reply to Muchun SongThe word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup the static key and hugetlb_free_vmemmap_enabled() to make code more expressive.
--- arch/arm64/mm/flush.c | 2 +- include/linux/page-flags.h | 12 ++++++------ mm/hugetlb_vmemmap.c | 10 +++++----- mm/memory_hotplug.c | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-)
arch/arm64/mm/flush.c +1 -1
@@ -85,7 +85,7 @@ void flush_dcache_page(struct page *page)* set since the head vmemmap page frame is reused (more details can * refer to the comments above page_fixed_fake_head()). */ -if (hugetlb_free_vmemmap_enabled () &&PageHuge (page)) +if (hugetlb_optimize_vmemmap_enabled () &&PageHuge (page)) page =compound_head (page);if (test_bit (PG_dcache_clean, &page->flags))
include/linux/page-flags.h +6 -6
@@ -201,16 +201,16 @@ enum pageflags {#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP DECLARE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , - hugetlb_free_vmemmap_enabled_key); + hugetlb_optimize_vmemmap_key); -static __always_inline bool hugetlb_free_vmemmap_enabled(void) +static __always_inline bool hugetlb_optimize_vmemmap_enabled(void) {return static_branch_maybe (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , - &hugetlb_free_vmemmap_enabled_key); + &hugetlb_optimize_vmemmap_key); }/* -* If the feature of freeing some vmemmap pages associated with each HugeTLB +* If the feature of optimizing vmemmap pages associated with each HugeTLB * page is enabled, the head vmemmap page frame is reused and all of the tail * vmemmap addresses map to the head vmemmap page frame (furture details can * refer to the figure at the head of the mm/hugetlb_vmemmap.c). In other
@@ -227,7 +227,7 @@ static __always_inline bool hugetlb_free_vmemmap_enabled(void)*/ static __always_inline const struct page *page_fixed_fake_head(const struct page *page) { -if (!hugetlb_free_vmemmap_enabled ()) +if (!hugetlb_optimize_vmemmap_enabled ())return page;/*
@@ -256,7 +256,7 @@ static inline const struct page *page_fixed_fake_head(const struct page *page)return page; } -static inline bool hugetlb_free_vmemmap_enabled (void ) +static inline bool hugetlb_optimize_vmemmap_enabled (void ) {return false; }
mm/hugetlb_vmemmap.c +5 -5
@@ -189,8 +189,8 @@#define RESERVE_VMEMMAP_SIZE (RESERVE_VMEMMAP_NR << PAGE_SHIFT)DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , - hugetlb_free_vmemmap_enabled_key); -EXPORT_SYMBOL (hugetlb_free_vmemmap_enabled_key); + hugetlb_optimize_vmemmap_key); +EXPORT_SYMBOL (hugetlb_optimize_vmemmap_key);static int __init hugetlb_vmemmap_early_param (char *buf) {
@@ -204,9 +204,9 @@ static int __init hugetlb_vmemmap_early_param(char *buf)return -EINVAL ;if (!strcmp (buf,"on" )) -static_branch_enable (&hugetlb_free_vmemmap_enabled_key); +static_branch_enable (&hugetlb_optimize_vmemmap_key);else if (!strcmp (buf,"off" )) -static_branch_disable (&hugetlb_free_vmemmap_enabled_key); +static_branch_disable (&hugetlb_optimize_vmemmap_key);else return -EINVAL ;
@@ -282,7 +282,7 @@ void __init hugetlb_vmemmap_init(struct hstate *h)BUILD_BUG_ON (__NR_USED_SUBPAGE >=RESERVE_VMEMMAP_SIZE /sizeof (struct page )); -if (!hugetlb_free_vmemmap_enabled ()) +if (!hugetlb_optimize_vmemmap_enabled ())return ; vmemmap_pages = (nr_pages *sizeof (struct page )) >>PAGE_SHIFT ;
mm/memory_hotplug.c +1 -1
@@ -1273,7 +1273,7 @@ bool mhp_supports_memmap_on_memory(unsigned long size)* populate a single PMD. */ return memmap_on_memory && - !hugetlb_free_vmemmap_enabled () && + !hugetlb_optimize_vmemmap_enabled () &&IS_ENABLED (CONFIG_MHP_MEMMAP_ON_MEMORY ) && size ==memory_block_size_bytes () && IS_ALIGNED(vmemmap_size, PMD_SIZE) &&
Signature · 1 line
2.11.0
Re: [PATCH 2/3] mm: hugetlb_vmemmap: cleanup hugetlb_free_vmemmap_enabled*
Quoted 4 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup the static key and
hugetlb_free_vmemmap_enabled()to make code more expressive.
Commit message might look better as:
The keyword "free" is not expressive enough to describe the feature of optimizing vmemmap pages associated with each HugeTLB page. Rename the keyword to "optimize".
Rename the static key and hugetlb_free_vmemmap_enabled() to make the code more expressive.
Quoted 8 lines
Signed-off-by Muchun Song <[email protected]>--- arch/arm64/mm/flush.c | 2 +- include/linux/page-flags.h | 12 ++++++------ mm/hugetlb_vmemmap.c | 10 +++++----- mm/memory_hotplug.c | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-)
Code changes look fine,
Signature · 1 line
Mike Kravetz
Re: [PATCH 2/3] mm: hugetlb_vmemmap: cleanup hugetlb_free_vmemmap_enabled*
In reply to Muchun SongQuoted 5 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup the static key and
hugetlb_free_vmemmap_enabled()to make code more expressive.
Signature · 3 lines
Thanks, David / dhildenb
PATCH 3/3 mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
In reply to Muchun SongThe word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +2 -2
@@ -1660,7 +1660,7 @@ Format: size[KMG] hugetlb_free_vmemmap= - [KNL] Reguires CONFIG_HUGETLB_PAGE_FREE_VMEMMAP + [KNL] Reguires CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP enabled. Allows heavy hugetlb users to free up some more memory (7 * PAGE_SIZE for each 2MB hugetlb page).
@@ -1669,7 +1669,7 @@ on: enable the feature off: disable the feature - Built with CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON=y, + Built with CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON=y, the default is on. This is not compatible with memory_hotplug.memmap_on_memory.
Documentation/admin-guide/mm/hugetlbpage.rst +1 -1
@@ -164,7 +164,7 @@ default_hugepagesz will all result in 256 2M huge pages being allocated. Valid default huge page size is architecture dependent. hugetlb_free_vmemmap - When CONFIG_HUGETLB_PAGE_FREE_VMEMMAP is set, this enables freeing + When CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is set, this enables optimizing unused vmemmap pages associated with each HugeTLB page. When multiple huge page sizes are supported, ``/proc/sys/vm/nr_hugepages``
arch/arm64/Kconfig +1 -1
@@ -96,7 +96,7 @@ config ARM64 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) - select ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP + select ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANTS_NO_INSTR select ARCH_HAS_UBSAN_SANITIZE_ALL
arch/arm64/mm/flush.c +1 -1
@@ -78,7 +78,7 @@ void flush_dcache_page(struct page *page)/* * Only the head page's flags of HugeTLB can be cleared since the tail * vmemmap pages associated with each HugeTLB page are mapped with -* read-only when CONFIG_HUGETLB_PAGE_FREE_VMEMMAP is enabled (more +* read-only when CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is enabled (more * details can refer to vmemmap_remap_pte()). Although * __sync_icache_dcache() only set PG_dcache_clean flag on the head * page struct, some tail page structs still can be seen the flag is
arch/x86/Kconfig +1 -1
@@ -121,7 +121,7 @@ config X86 select ARCH_WANTS_NO_INSTR select ARCH_WANT_GENERAL_HUGETLB select ARCH_WANT_HUGE_PMD_SHARE - select ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP if X86_64 + select ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP if X86_64 select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANTS_THP_SWAP if X86_64 select ARCH_HAS_PARANOID_L1D_FLUSH
arch/x86/mm/init_64.c +1 -1
@@ -1269,7 +1269,7 @@ static struct kcore_list kcore_vsyscall;static void __init register_page_bootmem_info (void ) { -#if defined(CONFIG_NUMA ) || defined(CONFIG_HUGETLB_PAGE_FREE_VMEMMAP ) +#if defined(CONFIG_NUMA ) || defined(CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP )int i;for_each_online_node (i)
fs/Kconfig +8 -8
@@ -250,22 +250,22 @@ config HUGETLB_PAGE # to enable the feature of minimizing overhead of struct page associated with # each HugeTLB page. # -config ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP +config ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP bool -config HUGETLB_PAGE_FREE_VMEMMAP +config HUGETLB_PAGE_OPTIMIZE_VMEMMAP def_bool HUGETLB_PAGE - depends on ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP + depends on ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP depends on SPARSEMEM_VMEMMAP -config HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON - bool "Default freeing vmemmap pages of HugeTLB to on" +config HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON + bool "Default optimizing vmemmap pages of HugeTLB to on" default n - depends on HUGETLB_PAGE_FREE_VMEMMAP + depends on HUGETLB_PAGE_OPTIMIZE_VMEMMAP help - When using HUGETLB_PAGE_FREE_VMEMMAP, the freeing unused vmemmap + When using HUGETLB_PAGE_OPTIMIZE_VMEMMAP, the optimizing unused vmemmap pages associated with each HugeTLB page is default off. Say Y here - to enable freeing vmemmap pages of HugeTLB by default. It can then + to enable optimizing vmemmap pages of HugeTLB by default. It can then be disabled on the command line via hugetlb_free_vmemmap=off. config MEMFD_CREATE
include/linux/hugetlb.h +1 -1
@@ -617,7 +617,7 @@ struct hstate {unsigned int nr_huge_pages_node[MAX_NUMNODES ];unsigned int free_huge_pages_node[MAX_NUMNODES ];unsigned int surplus_huge_pages_node[MAX_NUMNODES ]; -#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP unsigned int optimize_vmemmap_pages;#endif #ifdef CONFIG_CGROUP_HUGETLB
include/linux/mm.h +1 -1
@@ -3188,7 +3188,7 @@ static inline void print_vma_addr(char *prefix, unsigned long rip) }#endif -#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP int vmemmap_remap_free (unsigned long start,unsigned long end,unsigned long reuse); int vmemmap_remap_alloc(unsigned long start, unsigned long end,
include/linux/page-flags.h +3 -3
@@ -199,13 +199,13 @@ enum pageflags {#ifndef __GENERATING_BOUNDS_H -#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP -DECLARE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP +DECLARE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON , hugetlb_optimize_vmemmap_key); static __always_inline bool hugetlb_optimize_vmemmap_enabled(void) { -return static_branch_maybe (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , +return static_branch_maybe (CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON , &hugetlb_optimize_vmemmap_key); }
mm/Makefile +1 -1
@@ -77,7 +77,7 @@ obj-$(CONFIG_FRONTSWAP) += frontswap.o obj-$(CONFIG_ZSWAP) += zswap.o obj-$(CONFIG_HAS_DMA) += dmapool.o obj-$(CONFIG_HUGETLBFS) += hugetlb.o -obj-$(CONFIG_HUGETLB_PAGE_FREE_VMEMMAP) += hugetlb_vmemmap.o +obj-$(CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP) += hugetlb_vmemmap.o obj-$(CONFIG_NUMA) += mempolicy.o obj-$(CONFIG_SPARSEMEM) += sparse.o obj-$(CONFIG_SPARSEMEM_VMEMMAP) += sparse-vmemmap.o
mm/hugetlb_vmemmap.c +2 -2
@@ -188,7 +188,7 @@#define RESERVE_VMEMMAP_NR 1U#define RESERVE_VMEMMAP_SIZE (RESERVE_VMEMMAP_NR << PAGE_SHIFT) -DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , +DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON , hugetlb_optimize_vmemmap_key);EXPORT_SYMBOL (hugetlb_optimize_vmemmap_key);
@@ -276,7 +276,7 @@ void __init hugetlb_vmemmap_init(struct hstate *h)/* * There are only (RESERVE_VMEMMAP_SIZE / sizeof(struct page)) struct -* page structs that can be used when CONFIG_HUGETLB_PAGE_FREE_VMEMMAP, +* page structs that can be used when CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP, * so add a BUILD_BUG_ON to catch invalid usage of the tail struct page. */ BUILD_BUG_ON(__NR_USED_SUBPAGE >=
mm/hugetlb_vmemmap.h +2 -2
@@ -10,7 +10,7 @@#define _LINUX_HUGETLB_VMEMMAP_H#include <linux/hugetlb.h> -#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP int hugetlb_vmemmap_alloc (struct hstate *h,struct page *head);void hugetlb_vmemmap_free (struct hstate *h,struct page *head);void hugetlb_vmemmap_init (struct hstate *h);
@@ -41,5 +41,5 @@ static inline unsigned int hugetlb_optimize_vmemmap_pages(struct hstate *h) {return 0 ; } -#endif /* CONFIG_HUGETLB_PAGE_FREE_VMEMMAP */ +#endif /* CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP */ #endif /* _LINUX_HUGETLB_VMEMMAP_H */
mm/sparse-vmemmap.c +2 -2
@@ -34,7 +34,7 @@#include <asm/pgalloc.h> #include <asm/tlbflush.h> -#ifdef CONFIG_HUGETLB_PAGE_FREE_VMEMMAP +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP /** * struct vmemmap_remap_walk - walk vmemmap page table *
@@ -420,7 +420,7 @@ int vmemmap_remap_alloc(unsigned long start, unsigned long end, return 0; } -#endif /* CONFIG_HUGETLB_PAGE_FREE_VMEMMAP */ +#endif /* CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP */ /* * Allocate a block of memory to be used to back the virtual memory map
Signature · 1 line
2.11.0
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
mm/hugetlb_vmemmap.c line 193
Quoted 10 lines · Muchun Song
mm/hugetlb_vmemmap.c +1
-1@@ -188,7 +188,7 @@#define RESERVE_VMEMMAP_NR 1U#define RESERVE_VMEMMAP_SIZE (RESERVE_VMEMMAP_NR << PAGE_SHIFT) -DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , +DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON , hugetlb_optimize_vmemmap_key);EXPORT_SYMBOL (hugetlb_optimize_vmemmap_key);
Hi,
looks like just below here you forgot to update:
static enum vmemmap_optimize_mode vmemmap_optimize_mode =
IS_ENABLED(CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON);
so it refers to CONFIG name that no longer exists?
Vlastimil
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
Quoted 14 lines · Vlastimil Babka
mm/hugetlb_vmemmap.c line 193
Quoted 10 lines · Muchun Song
mm/hugetlb_vmemmap.c +1
-1@@ -188,7 +188,7 @@#define RESERVE_VMEMMAP_NR 1U#define RESERVE_VMEMMAP_SIZE (RESERVE_VMEMMAP_NR << PAGE_SHIFT) -DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON , +DEFINE_STATIC_KEY_MAYBE (CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON , hugetlb_optimize_vmemmap_key);EXPORT_SYMBOL (hugetlb_optimize_vmemmap_key);Hi,
Quoted 5 lines
looks like just below here you forgot to update:
static enum
vmemmap_optimize_modevmemmap_optimize_mode=IS_ENABLED(CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON);
Good catch!
Quoted 2 lines
so it refers to CONFIG name that no longer exists?
Right. My bad. I forgot to replace it. Will fix it ASAP.
Thanks.
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
In reply to Muchun SongQuoted 3 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
Commit message might look better as:
The keyword "free" is not expressive enough to describe the feature of optimizing vmemmap pages associated with each HugeTLB page. Rename the keyword to "optimize".
Change configs to make code more expressive.
Quoted 18 lines
Signed-off-by Muchun Song <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)
I see the issue found by Vlastimil is already fixed here [1]. With that this looks good.
[1] https://lore.kernel.org/linux-mm/[email protected]/
Signature · 1 line
Mike Kravetz
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
In reply to Muchun SongQuoted 3 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
Nit: why not simply CONFIG_HUGETLB_OPTIMIZE_VMEMMAP if we're touching this already? At least I don't see value in the additional "PAGE" :)
Quoted 24 lines
Signed-off-by Muchun Song <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)Documentation/admin-guide/kernel-parameters.txt +0
-0
Documentation/admin-guide/kernel-parameters.txt line 1662
Quoted 3 lines
Documentation/admin-guide/kernel-parameters.txt +0
-0@@ -1660,7 +1660,7 @@ Format: size[KMG] hugetlb_free_vmemmap=
We didn't change the parameter name in #2, correct?
Signature · 3 lines
Thanks, David / dhildenb
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
Quoted 8 lines · David Hildenbrand
Quoted 3 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
Nit: why not simply
CONFIG_HUGETLB_OPTIMIZE_VMEMMAPif we're touching this already? At least I don't see value in the additional "PAGE" :)
I thought it keep consistent with CONFIG_HUGETLB_PAGE. If you think CONFIG_HUGETLB_OPTIMIZE_VMEMMAP is a better name, maybe we need to another separate patch since this series is already on mm-stable branch.
Quoted 26 lines
Quoted 26 lines
Signed-off-by Muchun Song <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)Documentation/admin-guide/kernel-parameters.txt +0
-0@@ -1660,7 +1660,7 @@ Format: size[KMG]
Quoted 4 lines
Documentation/admin-guide/kernel-parameters.txt line 1662
Quoted 1 line
Documentation/admin-guide/kernel-parameters.txt +0
-0hugetlb_free_vmemmap=We didn't change the parameter name in #2, correct?
I think this is a interface to users. Is it correct to change it?
Thanks.
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
Quoted 6 lines · Muchun Song
Quoted 5 lines · David Hildenbrand
Quoted 3 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
Quoted 7 lines
Quoted 3 lines
Nit: why not simply
CONFIG_HUGETLB_OPTIMIZE_VMEMMAPif we're touching this already? At least I don't see value in the additional "PAGE" :)I thought it keep consistent with
CONFIG_HUGETLB_PAGE. If you thinkCONFIG_HUGETLB_OPTIMIZE_VMEMMAPis a better name, maybe we need to another separate patch since this series is already on mm-stable branch.
I see, makes sense then.
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Signed-off-by Muchun Song <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)Documentation/admin-guide/kernel-parameters.txt +0
-0@@ -1660,7 +1660,7 @@ Format: size[KMG]
Quoted 7 lines
Quoted 4 lines
Documentation/admin-guide/kernel-parameters.txt line 1662
Quoted 1 line
Documentation/admin-guide/kernel-parameters.txt +0
-0hugetlb_free_vmemmap=We didn't change the parameter name in #2, correct?
I think this is a interface to users. Is it correct to change it?
I guess so ... I was just wanted to confirm that this is still correct :)
Signature · 3 lines
Thanks, David / dhildenb
Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*
Quoted 48 lines · David Hildenbrand
Quoted 6 lines · Muchun Song
Quoted 5 lines · David Hildenbrand
Quoted 3 lines · Muchun Song
The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". In this patch , cheanup configs to make code more expressive.
Quoted 7 lines
Quoted 3 lines
Nit: why not simply
CONFIG_HUGETLB_OPTIMIZE_VMEMMAPif we're touching this already? At least I don't see value in the additional "PAGE" :)I thought it keep consistent with
CONFIG_HUGETLB_PAGE. If you thinkCONFIG_HUGETLB_OPTIMIZE_VMEMMAPis a better name, maybe we need to another separate patch since this series is already on mm-stable branch.I see, makes sense then.
Quoted 31 lines
Quoted 30 lines
Quoted 24 lines
Signed-off-by Muchun Song <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 2 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 ++++++++-------- include/linux/hugetlb.h | 2 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 6 +++--- mm/Makefile | 2 +- mm/hugetlb_vmemmap.c | 4 ++-- mm/hugetlb_vmemmap.h | 4 ++-- mm/sparse-vmemmap.c | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-)Documentation/admin-guide/kernel-parameters.txt +0
-0Documentation/admin-guide/kernel-parameters.txt line 1662
Quoted 3 lines
Documentation/admin-guide/kernel-parameters.txt +0
-0@@ -1660,7 +1660,7 @@ Format: size[KMG] hugetlb_free_vmemmap=We didn't change the parameter name in #2, correct?
Quoted 5 lines
Quoted 2 lines
I think this is a interface to users. Is it correct to change it?
I guess so ... I was just wanted to confirm that this is still correct :)
Well, I think it is not correct to change it since it could change behavior to users. :-)
Thanks.