+ mm-show_mem-remove-show_mem_filter_page_count.patch added to -mm tree
Subsystems (6)
[email protected]
maintainerSubject: + mm-show_mem-remove-show_mem_filter_page_count.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 03 Dec 2013 13:59:13 -0800
The patch titled
Subject: mm, show_mem: remove SHOW_MEM_FILTER_PAGE_COUNT
has been added to the -mm tree. Its filename is
mm-show_mem-remove-show_mem_filter_page_count.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-show_mem-remove-show_mem_filter_page_count.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-show_mem-remove-show_mem_filter_page_count.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
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 | 64 +++++++++++----------------------- arch/unicore32/mm/init.c | 3 - include/linux/mm.h | 1 lib/show_mem.c | 3 - mm/page_alloc.c | 7 --- 9 files changed, 69 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
@@ -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 +21 -43
76 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
@@ -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
@@ -1014,7 +1014,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
@@ -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 -5
@@ -2073,13 +2073,6 @@ void warn_alloc_failed(gfp_t gfp_mask, ireturn ;/* -* 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 ;