Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1136824imm; Fri, 14 Sep 2018 11:51:30 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbljp47O/Jm7dFZ8MxqosHGAMlAMChExH93YNjEI5YDtqpD6EydNIvq6Q2YaUTPMGY0qu2Z X-Received: by 2002:a63:5321:: with SMTP id h33-v6mr13008545pgb.139.1536951090055; Fri, 14 Sep 2018 11:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536951090; cv=none; d=google.com; s=arc-20160816; b=qZ2NTw9N8VZg0phRx/8+cgzDoDGXv6cHjHo+ThPtiZCFw73gRtEyTPUzr3GE0SR/qo d2qh3p35u5kKMo/2RfL5eOI1DVdUaQcYlTcCkKCzsXJqlg/VgpJem7cc2rGHnH/Gzs9D aRBibZ0ECvKe2uKNPW0wAvEsrRXRLkZWV6IKqEE8ic0gNUCQZiJO6FkxQkhOmBKjrlTA nlf2XNw6dyu9FQPPE2U6sivg2LFtQhyTNcvFylAshKoV6qevPPBi5posHr8rpxRIA35j odtJLvU4O5j1bFnZA1k3Hwoj5bCBBN7NrwE9QuVnECSLm/zWHeGxfPAmxvS/2V31zEGx g6XA== 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; bh=MHd3+hHKJsXibWpvllFfwsh/rSOkZDAjTMgF2uz20JA=; b=tuWHDgeGLsMNUZiMDd7/+9MXRrfRxJDm8HGyz5J042/DyNSD+PJbn5IqqSs8ErNzLw BOAV4KAOct7E2N3zJ1Y/wpnlQJTXndzNHUYzB2h5ZpVgakLr0KJdxmFYaBvyV5QZXzsx V/jLsN66KjdIJSAMZZnRwL20zOwRtdWt1Ft5hXcMhqZhKk/Ql0KfNUeRs7vhoYZRbsQG /26ZyP8ix8s04t7l78N/lVybnDaU1OY4iRFyTt5/6werhEfrSD8TirsX2QMVwN4ko68J Jx6/npqcEs+iFHcWD3dsAaI9F/V2yi3h3yhKjzaK/ooQWLpFQUG9z9CkgB/di1gHnLW/ w+PQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si7846396plo.96.2018.09.14.11.51.14; Fri, 14 Sep 2018 11:51:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727716AbeIOAGx (ORCPT + 99 others); Fri, 14 Sep 2018 20:06:53 -0400 Received: from smtp1.de.adit-jv.com ([62.225.105.245]:47513 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbeIOAGx (ORCPT ); Fri, 14 Sep 2018 20:06:53 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 045483C00C3; Fri, 14 Sep 2018 20:51:05 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2dmFelDm2gQ6; Fri, 14 Sep 2018 20:50:56 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 147043C00C2; Fri, 14 Sep 2018 20:50:56 +0200 (CEST) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 14 Sep 2018 20:50:55 +0200 Date: Fri, 14 Sep 2018 20:50:51 +0200 From: Eugeniu Rosca To: Jia He , Will Deacon , Ard Biesheuvel CC: Russell King , Catalin Marinas , Mark Rutland , Andrew Morton , Michal Hocko , Wei Yang , Kees Cook , Laura Abbott , Vladimir Murzin , Philip Derrin , AKASHI Takahiro , James Morse , Steve Capper , Gioh Kim , Vlastimil Babka , Mel Gorman , Johannes Weiner , Kemi Wang , Petr Tesarik , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Daniel Jordan , Daniel Vacek , linux-arm-kernel , Linux Kernel Mailing List , Linux-MM , Jia He , "George G. Davis" , Vladimir Zapolskiy , Andy Lowe , , Eugeniu Rosca , Eugeniu Rosca Subject: Re: [PATCH v11 0/3] remain and optimize memblock_next_valid_pfn on arm and arm64 Message-ID: <20180914185051.GA22530@vmlxhi-102.adit-jv.com> References: <1534907237-2982-1-git-send-email-jia.he@hxt-semitech.com> <20180907144447.GD12788@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180907144447.GD12788@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.93.184] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Renesas people Hello Will, hello Ard, On Fri, Sep 07, 2018 at 03:44:47PM +0100, Will Deacon wrote: > On Thu, Sep 06, 2018 at 01:24:22PM +0200, Ard Biesheuvel wrote: > > OK so we can summarize the benefits of this series as follows: > > - boot time on a virtual model of a Samurai CPU drops from 109 to 62 seconds > > - boot time on a QDF2400 arm64 server with 96 GB of RAM drops by ~15 > > *milliseconds* > > > > Google was not very helpful in figuring out what a Samurai CPU is and > > why we should care about the boot time of Linux running on a virtual > > model of it, and the 15 ms speedup is not that compelling either. > > > > Apologies to Jia that it took 11 revisions to reach this conclusion, > > but in /my/ opinion, tweaking the fragile memblock/pfn handling code > > for this reason is totally unjustified, and we're better off > > disregarding these patches. > > Oh, we're talking about a *simulator* for the significant boot time > improvement here? I didn't realise that, so I agree that the premise of > this patch set looks pretty questionable given how much "fun" we've had > with the memmap on arm and arm64. > > Will Similar to https://lkml.org/lkml/2018/1/24/420, my measurements show that the boot time of R-Car H3-ES2.0 Salvator-X (having 4GiB RAM) is decreased by ~135-140ms with this patch-set applied on top of v4.19-rc3. I agree that in the Desktop realm you would barely perceive the 140ms difference, but saving 140ms on the automotive SoC (designed for products which must comply with 2s-to-rear-view-camera NHTSA US regulations) *is* significant. FWIW, cppcheck and `checkpatch --strict` report style issues for patches #2 and #3. I hope these can be fixed and the review process can go on? From functional standpoint, I did some dynamic testing on H3-Salvator-X with UBSAN/KASAN=y and didn't observe any regressions, so: Tested-by: Eugeniu Rosca Best regards, Eugeniu.