Re: [PATCH] mm: show node to memory section relationship with symlinks in sysfs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Gary Hade <garyhade@...>
Cc: <linux-mm@...>, Andrew Morton <akpm@...>, Badari Pulavarty <pbadari@...>, Mel Gorman <mel@...>, Chris McDermott <lcm@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>, Greg KH <greg@...>, Dave Hansen <dave@...>, Nish Aravamudan <nish.aravamudan@...>
Date: Tuesday, September 30, 2008 - 4:06 am

> +#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
        :

I think this patch is convenience even when memory hotplug is disabled.
CONFIG_SPARSEMEM seems better than CONFIG_MEMORY_HOTPLUG_SPARSE.



(snip)


If the first page of the section is not valid, then this section_nr_to_nid()
doesn't return correct value.

I tested this patch. In my box, the start_pfn of node 1 is 1200400, but 
section_nr_to_pfn(mem_blk->phys_index) returns 1200000. As a result,
the section is linked to node 0.

Bye.
-- 
Yasunori Goto 


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mm: show node to memory section relationship wit..., Yasunori Goto, (Tue Sep 30, 4:06 am)