Re: [PATCH v4 4/4] Use 2GB memory block size on large-memory x86-64 systems
From: Tony Luck
Date: Tue Aug 25 2015 - 18:06:36 EST
On Tue, Aug 25, 2015 at 12:01 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
>> It does ... but this (attached) is simpler. Your patch and mine both
>> allow the system to boot ...
>
> The version that fix with section_nr present checking may save couple thousands
> calling to get_nid_for_pfn(). section size / page_size = 128M/4k = 32k
Actually saves about 1.2 million calls. Your patch wins :-)
Reported-and-tested-by: Tony Luck <tony.luck@xxxxxxxxx>
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/