Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5579904pxv; Wed, 7 Jul 2021 07:06:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgmw5pyZWWUJ2DDdEVqsBZauWVT4yauHoTxoPxH/2VTvyYpgCYtqzaWcepZ6R+tdnduQeq X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr25181410ejc.188.1625666751864; Wed, 07 Jul 2021 07:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625666751; cv=none; d=google.com; s=arc-20160816; b=PFkiElC5pm5H/6gigiEkFErpklSp7W5d57MnS9AKyV05cO615uiQohhaEXfK13eF7G C0+TIMNEP+6QHNTQ4jmkNq/sD0R9namXFfsM7AaiWjg6+fDMDCtvlyNOjt18tSkYZ+J3 YXrXujPIQUOVXaTY/vqP3h/fdwwXVOLbJLyUqzQn0P7rz0w3nYQkIPbHlYaqZ9weTmKg agYOy6LwMuXuy6wBDO+vfIi9hjLm8IAhdbHaWoVh9F2bobPKMMDKNEYcaalPaoJ8KZ0W Hn5PGFWoI4a8Vl6zWtzwAdnbNuB+NsHE8ptd4GGit5cvyxZjVOEOhXvTE3+DHNX33BvO Q/zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QcEZkwLs+Fpl1nceNhi+IHsXytH/BS7pSdCOP46nwS8=; b=aPjKkYCNKQbl18TjKyIPkSIUZCiy96GCANH3OxqQfZqjO3+kd0t0WCNI3HGHpj/rhW orRVmvc+DVypGH45I33+U4vOD4ILDCvjFr5BmO3F8zZ9QZ8WVD5D/4rOYQqGSwYFRZq0 S9t0YQl2WaUmhTjWng1pl0t3uzqG9M+RIVilbvY7pSWfhIRuOYjaWVzi0DctKvwZOZIR EITykehwkazQUwJihzmXQpZhQ/r8E4CVO8BhOOHw2KxI2/YC2OC6oaqELpZLVK+5qCkx 59Qh9/G96yJyGgCexVU1MzPNdN1B0LB5nj08Yv7EQ8/GJNMEHrLH7gcnrfpG7SSrNw8x vm1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J9l+mpUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si18425987eja.301.2021.07.07.07.05.28; Wed, 07 Jul 2021 07:05:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J9l+mpUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231786AbhGGN4m (ORCPT + 99 others); Wed, 7 Jul 2021 09:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231472AbhGGN4m (ORCPT ); Wed, 7 Jul 2021 09:56:42 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC22C06175F for ; Wed, 7 Jul 2021 06:54:00 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id f30so4244501lfj.1 for ; Wed, 07 Jul 2021 06:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QcEZkwLs+Fpl1nceNhi+IHsXytH/BS7pSdCOP46nwS8=; b=J9l+mpUMTfvqLDmLvM31KUzyWqn+aq4ujZ6cHj2NZYTanNHIyhxkbIPp9I5M2um5dp jl1a4d/W+zh/syUSDqZjU5/U6kVIbodiqpGXOU7IjWI2k5Y7MD6N5qiNePj9pCihw7kN jHul16Ap7QaZrHNkM7GEPRtJjAnWR4YtHwVGj7rA5G7WoLYmFlSCqlGRV2EeHcgGigk4 JOgmf/bg6nkQM3Qj1HGrpY6wuUqz4RujD9vzN+5gFGujq1UEpxVpQyGGpcf1nm8boQZV 1pKwikP/goLJ/yeQOTuDfMAo4DDOYo333jmUEgWMzpqxPsks/qWOKc1iG/sxQRXeUHki uZuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QcEZkwLs+Fpl1nceNhi+IHsXytH/BS7pSdCOP46nwS8=; b=dg97j2msk3pS6rSsN9CsBByq7DdYY+GYKBSWdtXKl43x+ho76m/NcTODYQbAfCPHuj Y8kWcr0L0OZRKV/jSIq1KJ6m3MStIeNR+VeWPophnd1ynpHdt5XU00tA19+OhyKMu697 8gBzxFSEMxUUbBm1+vOU/CmmbAVX1jCev7HZI4xWBRDfh3hoBRKlKYj2ltWE+hzH1T2z OCrWhH0QrgbE9MMQAdO+kOCM8yf1kSwKuEtofozf5yLxiQ3sQDYGyAa8GXdT7qcupNW0 HmNPnb1Q4XK27GkPjXfaWQaEOqyc+KHMbY/he7D38AqldcuhcqLAgek32ENfWCEpZirT rH0Q== X-Gm-Message-State: AOAM533lRQpXuP9PF+50VMBDz4pmP181QxLMhy+7Uum0z/V4LkbdrAvb 8OgR+MEYbeZ0v4KJyfox/1zvqWmjkhM/0Yi9NSbTDQ== X-Received: by 2002:a05:6512:3c99:: with SMTP id h25mr7823582lfv.277.1625666039231; Wed, 07 Jul 2021 06:53:59 -0700 (PDT) MIME-Version: 1.0 References: <20210625152603.25960-1-lukasz.luba@arm.com> <20210625152603.25960-2-lukasz.luba@arm.com> <2f43b211-da86-9d48-4e41-1c63359865bb@arm.com> <297df159-1681-f0a7-843d-f34d86e51d4c@arm.com> <27916860-33b1-f0a0-acff-4722a733c81b@arm.com> <58cb7ad3-ffff-8940-4c8e-2c46dcc86d54@arm.com> In-Reply-To: From: Vincent Guittot Date: Wed, 7 Jul 2021 15:53:48 +0200 Message-ID: Subject: Re: [PATCH 1/3] sched/fair: Prepare variables for increased precision of EAS estimated energy To: Lukasz Luba Cc: linux-kernel , Chris Redpath , Dietmar Eggemann , Morten Rasmussen , Quentin Perret , "open list:THERMAL" , Peter Zijlstra , "Rafael J. Wysocki" , Viresh Kumar , Ingo Molnar , Juri Lelli , Steven Rostedt , segall@google.com, Mel Gorman , Daniel Bristot de Oliveira , CCj.Yeh@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Jul 2021 at 13:02, Lukasz Luba wrote: > > > > On 7/7/21 11:50 AM, Vincent Guittot wrote: > > On Wed, 7 Jul 2021 at 12:41, Lukasz Luba wrote: > >> > >> > >> > >> On 7/7/21 11:32 AM, Vincent Guittot wrote: > >>> On Wed, 7 Jul 2021 at 12:29, Lukasz Luba wrote: > >>>> > >>>> > >>>> > >>>> On 7/7/21 11:11 AM, Vincent Guittot wrote: > >>>>> On Wed, 7 Jul 2021 at 12:06, Lukasz Luba wrote: > >>>>>> > >>>> > >>>> [snip] > >>>> > >>>>>> No. It's in 0.1uW scale, so 800Watts. Which is 16 CPUs * 64Watts > >>>>> > >>>>> Oh! you want 0.1uW precision .... This doesn't seem realistic at all. > >>>>> I'm not even sure that the power model can even reach an accuracy of > >>>>> 1mW > >>>>> > >>>> > >>>> True, the EM is registering platform with 1mW precision, but 1uW > >>> > >>> Do you mean 1uW or 0.1uW ? > >> > >> In this patch set I've proposed 0.1uW, but I'm open to drop one > >> order of magnitude. The 1uW still be good. > > > > I don't want to underestimate the capabilities of the power model but > > I don't see which benefit you will get with 0.1uW precision > > With a 1uW precision the long type currently used for the returned > > value is fine for 32bits machine AFAICT > > > > For 1uW and 1.2Watts for one core, 4 CPUs in cluster we get: > (1200 * 1000) * (4 * 1024) = ~4.9bln > so it would need div 64 version But as stated before, this is an internal computation step and doesn't have to be reflected in the returned value which can stay a long