commit 0d5fc470f9e246960c106a1ba5f4e9d83c8e994b
Author: Mike Kelly <mike@weatherwax.co.uk>
Date:   Mon Dec 29 13:32:06 2025 +0000

    vm_page: db_show_vmstat now shows external and internal parts of page activity totals
    
    Message-ID: <20251229133222.11968-3-mike@weatherwax.co.uk>

diff --git a/vm/vm_page.c b/vm/vm_page.c
index 06ba8d64..8b3d08f9 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -2203,10 +2203,22 @@ void db_show_vmstat(void)
 			vm_page_segs[i].high_free_pages / PAGES_PER_MB);
 		db_printf("%-20s %10uM\n", "active:",
 			nr_active_pages / PAGES_PER_MB);
+		db_printf("%-20s %10uM\n", "  external:",
+			  vm_page_segs[i].active_pages.external.nr_pages
+			  / PAGES_PER_MB);
+		db_printf("%-20s %10uM\n", "  internal:",
+			  vm_page_segs[i].active_pages.internal.nr_pages
+			  / PAGES_PER_MB);
 		db_printf("%-20s %10uM\n", "high active:",
 			vm_page_segs[i].high_active_pages / PAGES_PER_MB);
 		db_printf("%-20s %10uM\n", "inactive:",
 			nr_inactive_pages / PAGES_PER_MB);
+		db_printf("%-20s %10uM\n", "  external:",
+			  vm_page_segs[i].inactive_pages.external.nr_pages
+			  / PAGES_PER_MB);
+		db_printf("%-20s %10uM\n", "  internal:",
+			  vm_page_segs[i].inactive_pages.internal.nr_pages
+			  / PAGES_PER_MB);
 	}
 }
 #endif /* MACH_KDB */
