Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp837901imm; Tue, 3 Jul 2018 00:29:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcIVTSrPnWNJAZfQYVAr/mQeQ3ForEa3t51cEdFkjyCUbpBWtK7FSGnRgE6zk5MPunM3USK X-Received: by 2002:a62:a8e:: with SMTP id 14-v6mr28500383pfk.57.1530602990851; Tue, 03 Jul 2018 00:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602990; cv=none; d=google.com; s=arc-20160816; b=BjXlqqOcKzx6kTu6ZkyDBsRlK/RXvikliKiglmuTimPGjIf9seS+fDy7KjD6wABUQQ spJYhpNFCKN+kcnmpfoI8LmYGgNjCNTBvXzQ48YPNBt37vlrk81TB3CfKvdRPxLd5Ne6 U9MS/yb98rsuII4KRNKsc2H/Vdhczp72GGyF2FanItQubPqVKoN75iA6pvuMMAkSRpNF h0rGSTlgVNvIeAAqXq0jfkCMl/ddJKh3wWzEb6760qgSDhhBPJS/pmLFLUEpfEk5wCgK nxyMBpn7fJKfqbanOztQ+OL7Q/WykU6kf0iBfeRcBAJIyGsYc8juIFbE8wY7GKcccrly h9WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mDKg+6D9QTrJXR6yBrEImWU8YHc0X7dmPkpW4J5fm6o=; b=KLEYrWjzasysbQI8vQXoDoEgYVu8/VAA4RgyAkOir/ryJSD+HpvHju83s+wbPhkAGB M0bE/2STQl0UakCyi18HZ4FmdWCbbnFVYE6AP9xR6fISyh4DDh61yXSi2kgvGyXE0tkB AF3MF1wTH0+bHam+ms0dgeMHHTHU6TuEn9W8bn9oRJXVzVZV1gjUDT0+IxmNdr2GGHDM zGTCsuJfxgBQ9jVzVL9H/Q4FfXprZg9edCLea+LIEPA79atnEaumPG5lSmDVnNeQJ7ab Khn1gKohNsWtRAsYn55/e96TGaxR9uLt/93kHhwlUcTvoMYrZ2g59EBCaBEnHIAa71k6 a3uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si505338pfg.323.2018.07.03.00.29.36; Tue, 03 Jul 2018 00:29:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754585AbeGCH2k (ORCPT + 99 others); Tue, 3 Jul 2018 03:28:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:41752 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754571AbeGCH2i (ORCPT ); Tue, 3 Jul 2018 03:28:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5654FAE06; Tue, 3 Jul 2018 07:28:37 +0000 (UTC) Date: Tue, 3 Jul 2018 09:28:35 +0200 From: Michal Hocko To: Jia He Cc: Russell King , Andrew Morton , Catalin Marinas , Mel Gorman , Will Deacon , Mark Rutland , "H. Peter Anvin" , Pavel Tatashin , Daniel Jordan , AKASHI Takahiro , Gioh Kim , Steven Sistare , Daniel Vacek , Eugeniu Rosca , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, James Morse , Ard Biesheuvel , Steve Capper , Thomas Gleixner , Ingo Molnar , Greg Kroah-Hartman , Kate Stewart , Philippe Ombredanne , Johannes Weiner , Kemi Wang , Petr Tesarik , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , richard.weiyang@gmail.com Subject: Re: [PATCH v9 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64 Message-ID: <20180703072835.GE16767@dhcp22.suse.cz> References: <1530239363-2356-1-git-send-email-hejianet@gmail.com> <20180702114037.GJ19043@dhcp22.suse.cz> <779be6bf-db64-9175-f4c0-2baa0ea6defd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <779be6bf-db64-9175-f4c0-2baa0ea6defd@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 03-07-18 10:11:11, Jia He wrote: > On 7/2/2018 7:40 PM, Michal Hocko Wrote: [...] > > So this is 13ms saving when booting 96G machine. Is this really worth > > the additional code? Are there any other benefits? > Sorry, Michal > I missed one thing. > This 13ms optimization is merely the result of my patch 3~6 > Patch 1 is originated by Paul Burton in commit b92df1de5d289. > In its description, > === > James said "I have tested this patch on a virtual model of a Samurai CPU > with a sparse memory map. The kernel boot time drops from 109 to > 62 seconds. " > === Those numbers should be in the changelog. -- Michal Hocko SUSE Labs