Received: by 10.213.65.68 with SMTP id h4csp457842imn; Tue, 27 Mar 2018 02:37:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELu04rY4VF/Opiz2mBAXg29AgX3Vkh4+Y+NvIxNDxURePb66WJnlCC9dvaz10bJK9mN01jsZ X-Received: by 2002:a17:902:57c6:: with SMTP id g6-v6mr15133772plj.57.1522143426744; Tue, 27 Mar 2018 02:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522143426; cv=none; d=google.com; s=arc-20160816; b=mMM8xUkq4r6n6fTIkmec+mYGadGPEBtjxf/YWwyqQ8OUC4QsrkfokCGLNxh3ibdPsW MYpHjmj5jC53TWLgNgJDS5mIUzHg2D7JzOZeTdLjRQF6OicF1SxmCpZWgx6/eOu11+Rz 3ZYfSkY33jIggN0pxScVZ60ImJMQrkPfSCIPIO1zs/bewses3eHVVWIPL+zwc66jbIrX yz5iDRnxHPSxYOTlvPy8Mzg1p/1oyll39Hv7VO2HzZyUAoAG2f583+IwqDzXbzBcnCSv QuFEkobpkAkFpCLAH5BisY9a7aUSsMbukH/029ExYNroR780a84FFjA1z1J4sulTb+yH +qEA== 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=Z/JEVKrrO0uSwxZC+jds+QAWY23xzWgvk+Lj+YOVTK8=; b=wD9DfAsWewa/Q0doalr4dG70JVTzP8MBUU+dw+UH0hHpo6LWQwUy08z3Exxi5B8K8T PJJUqVTuiqlLneo7Qezs7OvAgeV9Vd3gIiDCwkSb/P4owLI7sqXvz6kakvuJJHLI2RAX 0QrYuTVdHQzxk3TKT3YQKfwVgdgqKMWWR4coV+ou48Fs0AsyvRRVh+IMiUoVYJidGolN pB8Xww+ccP4FvYjTYRDGk7LR4gpIH+ZJghMiyzZ5GEh2J3YfgFY0j7P2WYFuqjX/iDOj DagD8JThVuC4EA7pmKHsLBVWgaLuqS0RUpuDnwzaioUgL2CuQqDgl1pcPMbJDDLYEe3k hRiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XrJHJHBQ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si310382pfi.193.2018.03.27.02.36.52; Tue, 27 Mar 2018 02:37:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=XrJHJHBQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbeC0Jfs (ORCPT + 99 others); Tue, 27 Mar 2018 05:35:48 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53075 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeC0Jfq (ORCPT ); Tue, 27 Mar 2018 05:35:46 -0400 Received: by mail-wm0-f66.google.com with SMTP id l9so20424489wmh.2 for ; Tue, 27 Mar 2018 02:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Z/JEVKrrO0uSwxZC+jds+QAWY23xzWgvk+Lj+YOVTK8=; b=XrJHJHBQFmQxkCP8TqoW2S3p93++LmhzNkroGqK63KzR0z3r7F4VJXSYh5jNyWP1LL RQQd9AHcdm8n3zTXZWxJfO9K2u83QrSr0D0zO/t6B1bFkl78ByQRXz+JcvovEG6k/34U 6qDipkcYV/OMjtS8VUdhWrADb4GA9JxMTG28s= 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=Z/JEVKrrO0uSwxZC+jds+QAWY23xzWgvk+Lj+YOVTK8=; b=kO6vR/5dzYTdvDuaqEU2C7jpb/RuZb8syzPfO2dom3zbhuoGjP7ZwWHse9Oqy+QD72 Kg2REt0LT3gEqGwZxwWr+wjfxzuPN+O0vgzQg06Zwy/7JozUun5GUzf7gcRFaRCMqFNx IMqV10M5+HaA9NbgPJQT5+GlmxFiYtmVvBOlQNLgT0bg2r/P2j9wB1HQSLxN1NzPOqWz cZf70TZIE+DLX0UT8MlzEO6wqf0MSq/bB91ijoLCX0DBvxXRhashRmxQXzE6dUCPzJW+ GC1+jUM5eZRZAa0a1TypfGTWNzgjn/RTjcJROiTRtECR2RlrKVaxcOGzT9S1rXdaGjOH rXtQ== X-Gm-Message-State: AElRT7FrkneCsRMRGpCUeSgrWhuqjc6eFhkzmCLorhuVDz/+Wmo0FkD+ K4Lqw3lzW+PRdVeFHwT8lYFhJQ== X-Received: by 10.80.135.139 with SMTP id a11mr44383332eda.82.1522143344789; Tue, 27 Mar 2018 02:35:44 -0700 (PDT) Received: from ?IPv6:2001:41d0:fe90:b800:b0a9:da92:8c72:d9e2? ([2001:41d0:fe90:b800:b0a9:da92:8c72:d9e2]) by smtp.googlemail.com with ESMTPSA id g55sm699352eda.15.2018.03.27.02.35.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 02:35:44 -0700 (PDT) Subject: Re: [PATCH V2 0/7] CPU cooling device new strategies To: Leo Yan , Daniel Thompson Cc: Eduardo Valentin , kevin.wangtao@linaro.org, vincent.guittot@linaro.org, amit.kachhap@gmail.com, linux-kernel@vger.kernel.org, javi.merino@kernel.org, rui.zhang@intel.com, linux-pm@vger.kernel.org References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> <20180307170923.GA6543@localhost.localdomain> <1c07a155-d8e8-480f-937a-6022cda15d0b@linaro.org> <20180308120352.mko2b775ppquverb@oak.lan> <20180326143046.GA18782@leoy-ThinkPad-X240s> From: Daniel Lezcano Message-ID: Date: Tue, 27 Mar 2018 11:35:42 +0200 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: <20180326143046.GA18782@leoy-ThinkPad-X240s> 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 26/03/2018 16:30, Leo Yan wrote: > On Thu, Mar 08, 2018 at 12:03:52PM +0000, Daniel Thompson wrote: >> On Wed, Mar 07, 2018 at 07:57:17PM +0100, Daniel Lezcano wrote: >>>>> The preliminary benchmarks show the following changes: >>>>> >>>>> On the hikey6220, dhrystone shows a throughtput increase of 40% for an >>>>> increase of the latency of 16% while sysbench shows a latency increase >>>>> of 5%. >>>> >>>> I don't follow these numbers. Throughput increase while injecting idle? >>>> compared to what? percentages of what? Please be more specific to better >>>> describer your work.. >>> >>> The dhrystone throughput is based on the virtual timer, when we are >>> running, it is at max opp, so the throughput increases. But regarding >>> the real time, it takes obviously more time to achieve as we are >>> artificially inserting idle cycles. With the cpufreq governor, we run at >>> a lower opp, so the throughput is less for dhrystone but it takes less >>> time to achieve. >>> >>> Percentages are comparing cpufreq vs cpuidle cooling devices. I will >>> take care of presenting the results in a more clear way in the next version. >> >> I think we should also note that the current hikey settings for cpufreq >> are very badly tuned for this platform. It has a single temp threshold >> and it jumps from max freq to min freq. >> >> IIRC Leo's work on Hikey thermals correctly it would be much better if >> it used the power-allocator thermal governor or if if copied some of >> the Samsung 32-bit platform by configuring the step governor with a >> graduated with a slightly lower threshold that moves two stops back in >> the OPP table (which is still fairly high clock speed... but it >> thermally sustainable). > > I think Daniel L. is working on this patch set with 'power-allocator' > governor, and the parameters 'sustainable-power = <3326>' and > 'dynamic-power-coefficient = <311>' are profiling value on Hikey > platform. Now we only consider dynamic power and skip static leakage > for 'power-allocator' governor. And all these parameters are merged > into Linux mainline kernel. > > Daniel L. could correct me if I misunderstand the testing conditions. Well, the first iteration is without the powerallocator governor API. It was tested with the step-wise governor only. But you are right by saying it will use the dynamic-power-coefficient and sustainable-power and will implement the power allocator version of the API. I'm working on the power allocator version for the idle injection + OPP change as we need to compute the capacity equivalence between the idle-injection cycles + OPP and the lower OPP in order to change the OPP for optimized power / performance trade-off. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog