Received: by 10.223.176.5 with SMTP id f5csp1230724wra; Fri, 2 Feb 2018 13:35:36 -0800 (PST) X-Google-Smtp-Source: AH8x227nhki/HPAjGleifkLVmWXuZCp6UlUT7B8MR+hqvggJ2pQhb1uXlEHMoBqtJAINtESbw+zL X-Received: by 10.99.127.88 with SMTP id p24mr5199031pgn.124.1517607336393; Fri, 02 Feb 2018 13:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517607336; cv=none; d=google.com; s=arc-20160816; b=MOS1SdVfKCsEMNupl1ttUByq1Ww50JJYaxv8x/5VahG92KQfjr4AtCXOe1C6aaVoCW 4DQedoTJBztWypK1dVeBxPFmVlruL3PcWcz4wb3euCgxWnZJ4J8IKn8zhJ2hVCYJVRME g3YqSPdXU1G5WNVwnLp5h71bnn/L62rFDT4W3jOEJ4kavg4xMf3G6CrrG35u6hpLHsAQ 5kb44y5f3cQnixtkYbfhnT2ISBHyJ9RxiDGB6nTimQSTB775S+df8PZydzYtHr90GFWP QuAVq8ToZRrwm9njtvCLB7b6op8dVYG9KhjycQSjK8ps7p1qdzwAAh+qbeNQqp/C+0z2 kvyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=l3DPdRqgaNzJlY3vfIbSt0IkWmQhL3/N14GMwcli4WA=; b=jaPn9tV9GmKbzxrPNqme5W0Yub58EmZWVklSmmQhPN8Jb4RQ7vR/k5tJ7U66REvQ92 vkpGHOst0r3UhN7us8bh38IKokhcCpx4zG+1UbCr5VI4jNFSLUAOkKFKLU5OspICsSlA 1ngdHwn08iO2b1ddTjU3BiG2JbUrXz/hhm7KoI19sQ+9LY6O7/aM5BoMrUO1bZgGJfXR FfEipu8mYbyDrB9O71hYCDkwc0AdEnUO/uzGqc1P9oPpeOMePzngyMIUj5fcSGod3bz1 1/VqCMIH7RKx5ynafoXNE9QFwH/bODMF//enaOjjYlE6GB7W2DQcStKSdAa7Ub+48WHX 3mlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EKSQnsTA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si281630pgp.160.2018.02.02.13.35.20; Fri, 02 Feb 2018 13:35:36 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EKSQnsTA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752188AbeBBV0d (ORCPT + 99 others); Fri, 2 Feb 2018 16:26:33 -0500 Received: from mail-pl0-f49.google.com ([209.85.160.49]:42695 "EHLO mail-pl0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbeBBV01 (ORCPT ); Fri, 2 Feb 2018 16:26:27 -0500 Received: by mail-pl0-f49.google.com with SMTP id 11so7127609plc.9; Fri, 02 Feb 2018 13:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=l3DPdRqgaNzJlY3vfIbSt0IkWmQhL3/N14GMwcli4WA=; b=EKSQnsTA6oCfvPAkd2rGVDVHgMdciDrEYlDCyaIf7NsV29oKLN4uS0nqB7LOtOxXo9 iS55a+dlcsvUH7AbRJ5Aysu6pETl9MdkvqEWoKlymifKgtvLftFUFg7Q3NRLxA575K11 5lovgZaufbQ0OyTG5LtZcTvSmjnCYU0I8cdr/g4AN+Nv/rgM9Bmy1Mri5YxHBAVI2Ce8 9FQ4Mo2M63Ehtp2f9fbF1n90U1iXeapc7Y4odfOZ1AWA3/XG+iTL02mnv21pvGBOJ/uX D2rTJr1UF3GjnIvRgiYurhVLpXDLycHE/aFLZVhUm2NIce3GAZGCtNGhgl+hfxXXL0Uu 6qQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=l3DPdRqgaNzJlY3vfIbSt0IkWmQhL3/N14GMwcli4WA=; b=bAKEkOamzMdhOe0uLUMuVnaNh9YkpCzmjzVS7jzp/g2FNLtHMsRTx2tcgpEtL/dUB4 +x3vvIb2ls1CBsSsSQY0iOLppCE5r6UaobUXS/C5HGO9r0CcEW2eye4f/ethyL4nhxpY OCmGQqIPoxv3V5pbL25EHRE9YZluufcx9QXqeL+iAQLNF8bwLuj9EN1IX+JoQdxQn5QL bbFSlx0+ZemYBJeHtzC662rserM+VhI7o1Mk+gUzuP2ePcIDWJ8wc4gJqURQbqf30EOG c6hDd9TvAuvfh+xe1817laKsHoRNG57d4iCQuBXJe7r89JYzWv0Q2coyfFP0s4CaVn5P DRew== X-Gm-Message-State: AKwxytdbGS8iAouAYW8pqOvWT6aHnVE3sXwwIdwNSMH8TO11/OWL1wP7 uhLpWwKzliyK6JXeFvnnO6yI/Nyy X-Received: by 2002:a17:902:68ca:: with SMTP id x10-v6mr35327807plm.367.1517606787318; Fri, 02 Feb 2018 13:26:27 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id l62sm4499936pga.71.2018.02.02.13.26.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 13:26:26 -0800 (PST) Subject: Re: [PATCH] of: cache phandle nodes to decrease cost of of_find_node_by_phandle() To: Chintan Pandya , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1517429142-25727-1-git-send-email-frowand.list@gmail.com> <5b84a166-c71b-3a41-9e7f-a7624a8441f6@codeaurora.org> <38cdcae5-ec0f-d1be-b024-1990d4387731@gmail.com> <9e23d32f-05a0-ce8a-41f8-9a1a3d66be37@codeaurora.org> <567731e8-8f89-bd6e-c3d4-e36400e69198@codeaurora.org> From: Frank Rowand Message-ID: <0db129ef-ffd8-96fe-46a7-55fb575272e3@gmail.com> Date: Fri, 2 Feb 2018 13:26:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <567731e8-8f89-bd6e-c3d4-e36400e69198@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/01/18 21:59, Chintan Pandya wrote: > > > On 2/2/2018 12:40 AM, Frank Rowand wrote: >> On 02/01/18 02:31, Chintan Pandya wrote: >>> >>>>> Anyways, will fix this locally and share test results. >>>> >>>> Thanks, I look forward to the results. >>>> >>> >>> Set up for this time was slightly different. So, taken all the numbers again. >>> >>> Boot to shell time (in ms): Experiment 2 >>> [1] Base            : 14.843805 14.784842 14.842338 >>> [2] 64 sized fixed cache    : 14.189292 14.200003 14.266711 >>> [3] Dynamic freeable cache    : 14.112412 14.064772 14.036052 >>> >>> So, [3] (this patch) looks to be improving 750ms (on avg from base build). >>> >> >> Is this with the many debug options enabled?  If so, can you repeat with >> a normal configuration? > > Could you share me the point of doing this experiment in perf mode ? You had mentioned earlier in another thread: My recent results were taken on debug_defconfig which has many performance slowing code. So, gap between base-build and w/ the test patches would be more than the actual production build. If you measure a large performance gain with a debug configuration, that may not represent the actual gain you will get with a production configuration, as you noted. My question was trying to determine whether the numbers reported above are for a debug configuration or a production configuration. And if not a production configuration, I was requesting the numbers for a production configuration. If the production configuration does not show a significant boot time reduction from the patch then there is less justification for adding complexity to the existing code. I prefer to use simpler data structures and algorithms __if__ extra complexity does not provide any advantage. The balance between complexity and benefits is a core software engineering issue. > I don't have a set up for taking these numbers in perf mode. For > that, I need to ask some other team and round trip follow ups. In my > set up, I rely on serial console logging which gets disabled in perf > mode. > >> >> Thanks, >> >> Frank >> > > Chintan