Re: [Patch](memory hotplug)Allocate usemap on the section with pgdat (take 3)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yasunori Goto <y-goto@...>
Cc: Andy Whitcroft <apw@...>, Andrew Morton <akpm@...>, David Miller <davem@...>, Badari Pulavarty <pbadari@...>, Heiko Carstens <heiko.carstens@...>, Hiroyuki KAMEZAWA <kamezawa.hiroyu@...>, Tony Breeds <tony@...>, Linux Kernel ML <linux-kernel@...>, linux-mm <linux-mm@...>
Date: Monday, June 23, 2008 - 4:49 pm

On (17/06/08 20:07), Yasunori Goto didst pronounce:

This boot-tested successfully on a few machines. I wasn't able to get
many machines but at first take, it seems ok.


True. I have a report complaining that a node cannot be removed because
of some reserved pages at the start of the node. I have not looked
closely yet but it is possible that it is a page containing usemaps for
another section that is in there.


It's not a major deal but the only caller of
sparse_early_usemap_alloc_section() has the nid already. If you looked up
the pgdat there and passed it in, it would involve fewer lookups. Granted,
this is not performance critical or anything so it's not a major deal.


The comment is a bit tricky to read. How about?

	/*
	 * A page may contain usemaps for other sections preventing the
	 * the page being freed and making a section unremovable while
	 * other sections referencing the usemap remain active. Similarly,
	 * a pgdat can prevent a section being removed. If section A
	 * contains a pgdat and section B contains the usemap, both
	 * sections become inter-dependent. This allocates usemaps
	 * from the same section as the pgdat where possible to avoid
	 * this problem.
	 */


no kernel log level here


a follow-on printk like this should use KERN_CONT


Just a few minor things that need cleaning up there. Otherwise, the idea
seems sound.

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Patch](memory hotplug)Allocate usemap on the section wi..., Mel Gorman, (Mon Jun 23, 4:49 pm)