Skip to contentSkip to conversation

mm-show_mem-remove-show_mem_filter_page_count.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2014

Subsystems (6)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-show_mem-remove-show_mem_filter_page_count.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:12:50 -0800

The patch titled
Subject: mm, show_mem: remove SHOW_MEM_FILTER_PAGE_COUNT
has been removed from the -mm tree. Its filename was
mm-show_mem-remove-show_mem_filter_page_count.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Mel Gorman <[email protected]>
Subject: mm, show_mem: remove SHOW_MEM_FILTER_PAGE_COUNT

Commit 4b59e6c4 ("mm, show_mem: suppress page counts in non-blockable contexts") introduced SHOW_MEM_FILTER_PAGE_COUNT to suppress PFN walks on large memory machines. Commit c78e9363 ("mm: do not walk all of system memory during show_mem") avoided a PFN walk in the generic show_mem helper which removes the requirement for SHOW_MEM_FILTER_PAGE_COUNT in that case.

This patch removes PFN walkers from the arch-specific implementations that report on a per-node or per-zone granularity. ARM and unicore32 still do a PFN walk as they report memory usage on each bank which is a much finer granularity where the debugging information may still be of use. As the remaining arches doing PFN walks have relatively small amounts of memory, this patch simply removes SHOW_MEM_FILTER_PAGE_COUNT.

---

 arch/arm/mm/init.c       |    3 -
 arch/ia64/mm/contig.c    |   68 -------------------------------------
 arch/ia64/mm/discontig.c |   63 ----------------------------------
 arch/ia64/mm/init.c      |   48 ++++++++++++++++++++++++++
 arch/parisc/mm/init.c    |   61 +++++++++------------------------
 arch/unicore32/mm/init.c |    3 -
 include/linux/mm.h       |    1 
 lib/show_mem.c           |    3 -
 mm/page_alloc.c          |    7 ---
 9 files changed, 66 insertions(+), 191 deletions(-)
arch/arm/mm/init.c renamed from arch/arm/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count +0 -3
diff -puN arch/arm/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count arch/arm/mm/init.c
@@ -92,9 +92,6 @@ void show_mem(unsigned int filter)
 	printk("Mem-info:\n");
 	show_free_areas(filter);
 
-	if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
-		return;
-
 	for_each_bank (i, mi) {
 		struct membank *bank = &mi->bank[i];
 		unsigned int pfn1, pfn2;
arch/ia64/mm/contig.c renamed from arch/ia64/mm/contig.c~mm-show_mem-remove-show_mem_filter_page_count +0 -68

74 lines not on this page · raw message

arch/ia64/mm/discontig.c renamed from arch/ia64/mm/discontig.c~mm-show_mem-remove-show_mem_filter_page_count +0 -63

69 lines not on this page · raw message

arch/ia64/mm/init.c renamed from arch/ia64/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count +48 -0

51 lines not on this page · raw message

arch/parisc/mm/init.c renamed from arch/parisc/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count +18 -43

73 lines not on this page · raw message

arch/unicore32/mm/init.c renamed from arch/unicore32/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count +0 -3
diff -puN arch/unicore32/mm/init.c~mm-show_mem-remove-show_mem_filter_page_count arch/unicore32/mm/init.c
@@ -66,9 +66,6 @@ void show_mem(unsigned int filter)
 	printk(KERN_DEFAULT "Mem-info:\n");
 	show_free_areas(filter);
 
-	if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
-		return;
-
 	for_each_bank(i, mi) {
 		struct membank *bank = &mi->bank[i];
 		unsigned int pfn1, pfn2;
include/linux/mm.h renamed from include/linux/mm.h~mm-show_mem-remove-show_mem_filter_page_count +0 -1
diff -puN include/linux/mm.h~mm-show_mem-remove-show_mem_filter_page_count include/linux/mm.h
@@ -1016,7 +1016,6 @@ extern void pagefault_out_of_memory(void
  * various contexts.
  */
 #define SHOW_MEM_FILTER_NODES		(0x0001u)	/* disallowed nodes */
-#define SHOW_MEM_FILTER_PAGE_COUNT	(0x0002u)	/* page type count */
 
 extern void show_free_areas(unsigned int flags);
 extern bool skip_free_areas_node(unsigned int flags, int nid);
lib/show_mem.c renamed from lib/show_mem.c~mm-show_mem-remove-show_mem_filter_page_count +0 -3
diff -puN lib/show_mem.c~mm-show_mem-remove-show_mem_filter_page_count lib/show_mem.c
@@ -17,9 +17,6 @@ void show_mem(unsigned int filter)
 	printk("Mem-Info:\n");
 	show_free_areas(filter);
 
-	if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
-		return;
-
 	for_each_online_pgdat(pgdat) {
 		unsigned long flags;
 		int zoneid;
mm/page_alloc.c renamed from mm/page_alloc.c~mm-show_mem-remove-show_mem_filter_page_count +0 -7
diff -puN mm/page_alloc.c~mm-show_mem-remove-show_mem_filter_page_count mm/page_alloc.c
@@ -2072,13 +2072,6 @@ void warn_alloc_failed(gfp_t gfp_mask, i
 		return;
 
 	/*
-	 * Walking all memory to count page types is very expensive and should
-	 * be inhibited in non-blockable contexts.
-	 */
-	if (!(gfp_mask & __GFP_WAIT))
-		filter |= SHOW_MEM_FILTER_PAGE_COUNT;
-
-	/*
 	 * This documents exceptions given to allocations in certain
 	 * contexts that are allowed to allocate outside current's set
 	 * of allowed nodes.

_

Patches currently in -mm which might be from [email protected] are

origin.patch
mm-remove-bug_on-from-mlock_vma_page.patch x86-mm-account-for-tlb-flushes-only-when-debugging.patch x86-mm-clean-up-inconsistencies-when-flushing-tlb-ranges.patch x86-mm-eliminate-redundant-page-table-walk-during-tlb-range-flushing.patch x86-mm-change-tlb_flushall_shift-for-ivybridge.patch mm-x86-revisit-tlb_flushall_shift-tuning-for-page-flushes-except-on-ivybridge.patch mm-page_alloc-allow-__gfp_nofail-to-allocate-below-watermarks-after-reclaim.patch mm-munlock-fix-potential-race-with-thp-page-split.patch numa-add-a-sysctl-for-numa_balancing.patch numa-add-a-sysctl-for-numa_balancing-fix.patch mm-vmscan-shrink-all-slab-objects-if-tight-on-memory.patch mm-vmscan-call-numa-unaware-shrinkers-irrespective-of-nodemask.patch mm-vmscan-respect-numa-policy-mask-when-shrinking-slab-on-direct-reclaim.patch mm-vmscan-move-call-to-shrink_slab-to-shrink_zones.patch mm-vmscan-remove-shrink_control-arg-from-do_try_to_free_pages.patch mm-show-message-when-updating-min_free_kbytes-in-thp.patch mm-improve-documentation-of-page_order-v2.patch mm-improve-documentation-of-page_order-v2-fix.patch
linux-next.patch mm-migratec-fix-setting-of-cpupid-on-page-migration-twice-against-normal-page.patch zsmalloc-move-it-under-mm.patch
zram-promote-zram-from-staging.patch