* [PATCH] mm: add nr_free_highatomic in show_free_areas
@ 2025-04-12 9:27 gaoxu
2025-04-13 20:47 ` David Hildenbrand
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gaoxu @ 2025-04-12 9:27 UTC (permalink / raw)
To: Andrew Morton
Cc: Mike Rapoport, surenb, Yu Zhao, Barry Song, linux-mm,
linux-kernel, yipengxiang, gaoxu
The commit c928807f6f6b6("mm/page_alloc: keep track of free highatomic")
adds a new variable nr_free_highatomic, which is useful for analyzing low
mem issues. add nr_free_highatomic in show_free_areas.
Signed-off-by: gao xu <gaoxu2@honor.com>
---
mm/show_mem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/show_mem.c b/mm/show_mem.c
index ad373b4b6..03e8d968f 100644
--- a/mm/show_mem.c
+++ b/mm/show_mem.c
@@ -305,6 +305,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
" low:%lukB"
" high:%lukB"
" reserved_highatomic:%luKB"
+ " free_highatomic:%luKB"
" active_anon:%lukB"
" inactive_anon:%lukB"
" active_file:%lukB"
@@ -326,6 +327,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
K(low_wmark_pages(zone)),
K(high_wmark_pages(zone)),
K(zone->nr_reserved_highatomic),
+ K(zone->nr_free_highatomic),
K(zone_page_state(zone, NR_ZONE_ACTIVE_ANON)),
K(zone_page_state(zone, NR_ZONE_INACTIVE_ANON)),
K(zone_page_state(zone, NR_ZONE_ACTIVE_FILE)),
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mm: add nr_free_highatomic in show_free_areas
2025-04-12 9:27 [PATCH] mm: add nr_free_highatomic in show_free_areas gaoxu
@ 2025-04-13 20:47 ` David Hildenbrand
2025-04-13 21:52 ` Barry Song
2025-04-15 6:40 ` Anshuman Khandual
2 siblings, 0 replies; 4+ messages in thread
From: David Hildenbrand @ 2025-04-13 20:47 UTC (permalink / raw)
To: gaoxu, Andrew Morton
Cc: Mike Rapoport, surenb, Yu Zhao, Barry Song, linux-mm,
linux-kernel, yipengxiang
On 12.04.25 11:27, gaoxu wrote:
> The commit c928807f6f6b6("mm/page_alloc: keep track of free highatomic")
> adds a new variable nr_free_highatomic, which is useful for analyzing low
> mem issues. add nr_free_highatomic in show_free_areas.
>
Sounds helpful
Acked-by: David Hildenbrand <david@redhat.com>
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mm: add nr_free_highatomic in show_free_areas
2025-04-12 9:27 [PATCH] mm: add nr_free_highatomic in show_free_areas gaoxu
2025-04-13 20:47 ` David Hildenbrand
@ 2025-04-13 21:52 ` Barry Song
2025-04-15 6:40 ` Anshuman Khandual
2 siblings, 0 replies; 4+ messages in thread
From: Barry Song @ 2025-04-13 21:52 UTC (permalink / raw)
To: gaoxu
Cc: Andrew Morton, Mike Rapoport, surenb, Yu Zhao, linux-mm,
linux-kernel, yipengxiang
On Sat, Apr 12, 2025 at 9:27 PM gaoxu <gaoxu2@honor.com> wrote:
>
> The commit c928807f6f6b6("mm/page_alloc: keep track of free highatomic")
> adds a new variable nr_free_highatomic, which is useful for analyzing low
> mem issues. add nr_free_highatomic in show_free_areas.
>
> Signed-off-by: gao xu <gaoxu2@honor.com>
Reviewed-by: Barry Song <baohua@kernel.org>
> ---
> mm/show_mem.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/mm/show_mem.c b/mm/show_mem.c
> index ad373b4b6..03e8d968f 100644
> --- a/mm/show_mem.c
> +++ b/mm/show_mem.c
> @@ -305,6 +305,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
> " low:%lukB"
> " high:%lukB"
> " reserved_highatomic:%luKB"
> + " free_highatomic:%luKB"
> " active_anon:%lukB"
> " inactive_anon:%lukB"
> " active_file:%lukB"
> @@ -326,6 +327,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
> K(low_wmark_pages(zone)),
> K(high_wmark_pages(zone)),
> K(zone->nr_reserved_highatomic),
> + K(zone->nr_free_highatomic),
> K(zone_page_state(zone, NR_ZONE_ACTIVE_ANON)),
> K(zone_page_state(zone, NR_ZONE_INACTIVE_ANON)),
> K(zone_page_state(zone, NR_ZONE_ACTIVE_FILE)),
> --
> 2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mm: add nr_free_highatomic in show_free_areas
2025-04-12 9:27 [PATCH] mm: add nr_free_highatomic in show_free_areas gaoxu
2025-04-13 20:47 ` David Hildenbrand
2025-04-13 21:52 ` Barry Song
@ 2025-04-15 6:40 ` Anshuman Khandual
2 siblings, 0 replies; 4+ messages in thread
From: Anshuman Khandual @ 2025-04-15 6:40 UTC (permalink / raw)
To: gaoxu, Andrew Morton
Cc: Mike Rapoport, surenb, Yu Zhao, Barry Song, linux-mm,
linux-kernel, yipengxiang
On 4/12/25 14:57, gaoxu wrote:
> The commit c928807f6f6b6("mm/page_alloc: keep track of free highatomic")
> adds a new variable nr_free_highatomic, which is useful for analyzing low
> mem issues. add nr_free_highatomic in show_free_areas.
>
> Signed-off-by: gao xu <gaoxu2@honor.com>
> ---
> mm/show_mem.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/mm/show_mem.c b/mm/show_mem.c
> index ad373b4b6..03e8d968f 100644
> --- a/mm/show_mem.c
> +++ b/mm/show_mem.c
> @@ -305,6 +305,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
> " low:%lukB"
> " high:%lukB"
> " reserved_highatomic:%luKB"
> + " free_highatomic:%luKB"
> " active_anon:%lukB"
> " inactive_anon:%lukB"
> " active_file:%lukB"
> @@ -326,6 +327,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
> K(low_wmark_pages(zone)),
> K(high_wmark_pages(zone)),
> K(zone->nr_reserved_highatomic),
> + K(zone->nr_free_highatomic),
> K(zone_page_state(zone, NR_ZONE_ACTIVE_ANON)),
> K(zone_page_state(zone, NR_ZONE_INACTIVE_ANON)),
> K(zone_page_state(zone, NR_ZONE_ACTIVE_FILE)),
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-15 6:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-12 9:27 [PATCH] mm: add nr_free_highatomic in show_free_areas gaoxu
2025-04-13 20:47 ` David Hildenbrand
2025-04-13 21:52 ` Barry Song
2025-04-15 6:40 ` Anshuman Khandual
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox