Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756306AbbHYWGe (ORCPT ); Tue, 25 Aug 2015 18:06:34 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:34633 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756199AbbHYWGc (ORCPT ); Tue, 25 Aug 2015 18:06:32 -0400 MIME-Version: 1.0 In-Reply-To: References: <1415089784-28779-1-git-send-email-daniel@numascale.com> <1415089784-28779-4-git-send-email-daniel@numascale.com> <20150821181910.GA31378@agluck-desk.sc.intel.com> <20150821202707.GA920@agluck-desk.sc.intel.com> Date: Tue, 25 Aug 2015 15:06:31 -0700 Message-ID: Subject: Re: [PATCH v4 4/4] Use 2GB memory block size on large-memory x86-64 systems From: Tony Luck To: Yinghai Lu Cc: Daniel J Blueman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Bjorn Helgaas , "the arch/x86 maintainers" , Linux Kernel Mailing List , "linux-pci@vger.kernel.org" , Steffen Persvold Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 17 On Tue, Aug 25, 2015 at 12:01 PM, Yinghai Lu 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/