linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <mel@csn.ul.ie>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, yhlu.kernel@gmail.com
Subject: Re: + mm-remove-find_max_pfn_with_active_regions.patch added to -mm tree
Date: Mon, 28 Jul 2008 10:16:55 +0100	[thread overview]
Message-ID: <20080728091655.GC7965@csn.ul.ie> (raw)
In-Reply-To: <200807280313.m6S3DHDk017400@imap1.linux-foundation.org>

On (27/07/08 20:13), akpm@linux-foundation.org didst pronounce:
> 
> The patch titled
>      mm: remove find_max_pfn_with_active_regions
> has been added to the -mm tree.  Its filename is
>      mm-remove-find_max_pfn_with_active_regions.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 ***
> 
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
> 
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
> 
> ------------------------------------------------------
> Subject: mm: remove find_max_pfn_with_active_regions
> From: Yinghai Lu <yhlu.kernel@gmail.com>
> 
> It has no user now
> 
> Also print out info about adding/removing active regions.
> 
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> Cc: Mel Gorman <mel@csn.ul.ie>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  include/linux/mm.h |    1 -
>  mm/page_alloc.c    |   22 ++--------------------
>  2 files changed, 2 insertions(+), 21 deletions(-)
> 
> diff -puN include/linux/mm.h~mm-remove-find_max_pfn_with_active_regions include/linux/mm.h
> --- a/include/linux/mm.h~mm-remove-find_max_pfn_with_active_regions
> +++ a/include/linux/mm.h
> @@ -1041,7 +1041,6 @@ extern unsigned long absent_pages_in_ran
>  extern void get_pfn_range_for_nid(unsigned int nid,
>  			unsigned long *start_pfn, unsigned long *end_pfn);
>  extern unsigned long find_min_pfn_with_active_regions(void);
> -extern unsigned long find_max_pfn_with_active_regions(void);
>  extern void free_bootmem_with_active_regions(int nid,
>  						unsigned long max_low_pfn);
>  typedef int (*work_fn_t)(unsigned long, unsigned long, void *);
> diff -puN mm/page_alloc.c~mm-remove-find_max_pfn_with_active_regions mm/page_alloc.c
> --- a/mm/page_alloc.c~mm-remove-find_max_pfn_with_active_regions
> +++ a/mm/page_alloc.c
> @@ -3572,8 +3572,7 @@ void __init add_active_range(unsigned in
>  {
>  	int i;
>  
> -	mminit_dprintk(MMINIT_TRACE, "memory_register",
> -			"Entering add_active_range(%d, %#lx, %#lx) "
> +	printk(KERN_INFO "Adding active range (%d, %#lx, %#lx) "
>  			"%d entries of %d used\n",
>  			nid, start_pfn, end_pfn,
>  			nr_nodemap_entries, MAX_ACTIVE_REGIONS);

Why are the mminit_dprintk() calls being converted to printk(KERN_INFO)?  On
some machines, this will be very noisy. For example, some POWER configurations
will print out one line for every 16MB of memory with this patch.

> @@ -3635,7 +3634,7 @@ void __init remove_active_range(unsigned
>  	int i, j;
>  	int removed = 0;
>  
> -	printk(KERN_DEBUG "remove_active_range (%d, %lu, %lu)\n",
> +	printk(KERN_INFO "Removing active range (%d, %#lx, %#lx)\n",
>  			  nid, start_pfn, end_pfn);
>  

This call is a lot rarer but I still don't see why it is being moved to
KERN_INFO. If anything, that should have been another mminit_printk() call
and one I obviously missed.

>  	/* Find the old active region end and shrink */
> @@ -3753,23 +3752,6 @@ unsigned long __init find_min_pfn_with_a
>  	return find_min_pfn_for_node(MAX_NUMNODES);
>  }
>  
> -/**
> - * find_max_pfn_with_active_regions - Find the maximum PFN registered
> - *
> - * It returns the maximum PFN based on information provided via
> - * add_active_range().
> - */
> -unsigned long __init find_max_pfn_with_active_regions(void)
> -{
> -	int i;
> -	unsigned long max_pfn = 0;
> -
> -	for (i = 0; i < nr_nodemap_entries; i++)
> -		max_pfn = max(max_pfn, early_node_map[i].end_pfn);
> -
> -	return max_pfn;
> -}
> -
>  /*
>   * early_calculate_totalpages()
>   * Sum pages in active regions for movable zone.
> _
> 
> Patches currently in -mm which might be from yhlu.kernel@gmail.com are
> 
> origin.patch
> linux-next.patch
> mm-remove-find_max_pfn_with_active_regions.patch
> 

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

       reply	other threads:[~2008-07-28  9:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200807280313.m6S3DHDk017400@imap1.linux-foundation.org>
2008-07-28  9:16 ` Mel Gorman [this message]
2008-07-28 11:15   ` Yinghai Lu
2008-07-28 11:38     ` Mel Gorman
2008-07-28 18:25       ` Yinghai Lu
2008-07-28 19:15         ` Mel Gorman
2008-07-28 19:38           ` Yinghai Lu
2008-07-28 20:00             ` Mel Gorman
2008-07-28 20:14               ` Yinghai Lu
2008-07-28 20:40                 ` Mel Gorman
2008-07-28 20:55                   ` Andrew Morton
2008-07-28 21:16                     ` Mel Gorman
2008-07-28 21:24                   ` Yinghai Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080728091655.GC7965@csn.ul.ie \
    --to=mel@csn.ul.ie \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=yhlu.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox