Skip to contentSkip to conversation

mm: add nr_free_highatomic in show_free_areas

PATCH Applied gaoxu 4 participants 4 messages Apr 12, 2025 – Apr 15, 2025

Subsystems (2)
lore
Share & tools
lore

gaoxu

author
#0 lore raw

PATCH 1/1 mm: add nr_free_highatomic in show_free_areas

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.

---
 mm/show_mem.c | 2 ++
 1 file changed, 2 insertions(+)
mm/show_mem.c +2 -0
index ad373b4b6..03e8d968f 100644
@@ -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)),
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · 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.

Sounds helpful

Signature · 3 lines
Cheers,

David / dhildenb
Reviewed-by on v1 1/1
#2 lore raw
In reply to gaoxu
Quoted 6 lines · 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.

Quoted 26 lines
---
 mm/show_mem.c | 2 ++
 1 file changed, 2 insertions(+)
mm/show_mem.c +2 -1
index ad373b4b6..03e8d968f 100644
@@ -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

Reviewed-by on v1 1/1
#3 lore raw
In reply to gaoxu
Quoted 22 lines · 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.

---
 mm/show_mem.c | 2 ++
 1 file changed, 2 insertions(+)
mm/show_mem.c +1 -0
index ad373b4b6..03e8d968f 100644
@@ -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"

mm/show_mem.c static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z · line 333

Quoted 7 lines
mm/show_mem.c +1 -0
@@ -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)),