Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5473822imm; Tue, 16 Oct 2018 10:46:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Og1Hy9BbHVxndXP4kqFZgp6BlCD+vuY4aMV1EH8YhhKeqfEGEnNl6rPFmcG2ONVO+RSKv X-Received: by 2002:a63:1520:: with SMTP id v32-v6mr21392605pgl.150.1539712011017; Tue, 16 Oct 2018 10:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539712010; cv=none; d=google.com; s=arc-20160816; b=n9iHNp6TLJZIilFB7Ddz09On0QwHinafvB6mtis5IZ06GT2yQw3pLJmtXp+QwxDYTD SdSWCbD0Cdpk5IZOudcbw5bB4nDdrnWQHofuf8fxEikTdPbajEMnpMa1pxt5betaHjlD iNDLvV27NsWWl0CttkXgoWPXXEX4hm3DAALexzBZF3WUAZ1tYC5DLFV0YYcOD8vDnC/U uaIa2MxZa8hiezKGMwLQO2CaQ9uWFv+Sn1Ouy86JCyeJz+/dhkCd4jFBFpyg2ia2DCrO MQtVWK9OkDivJzTpy2y5+XAyVJK+aZksukL7v33TBtzQ0k8k7dDkQiYaBzvxWtjSFohy g3xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nKAUkAPuPDlFBmtURpYNjxr6/i+74M1VNtdiYpnxyyY=; b=y+LQeWcdIzQX4Kxrbvv4krl4Nzngy9/olclRUnfBhaM3le1jPsfEI3ijcD+t19HqYf 1pCRYjZly45mxRrBt2DfMVNLtovkwAtmqARPbOCQC/H7+GGj1xNRF4F+pHmCG0xDPGvD VK33ao2pQVevkYvxWrcwVPG1JtMIFzKTHcNynf31dyk+jjmMgo6FnOw9kK36epKUwpuk x485/oTa1MExYug21RsVYB78ElNNnIhQXs13pHeCfDriz7GyMnU2rQja1j2w8vE5GcXl aSwBXYqiw1uyEUFNzO8FIsryGmAnmJK68sIrp1ugLkf+v+rmntkb6JdZ1E0jEgUddvoW wUZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kq9Dgv5e; 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 a5-v6si915147plh.148.2018.10.16.10.46.34; Tue, 16 Oct 2018 10:46: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; dkim=pass header.i=@linaro.org header.s=google header.b=Kq9Dgv5e; 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 S1728355AbeJQBDR (ORCPT + 99 others); Tue, 16 Oct 2018 21:03:17 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:36870 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727263AbeJQBDP (ORCPT ); Tue, 16 Oct 2018 21:03:15 -0400 Received: by mail-it1-f193.google.com with SMTP id e74-v6so33106758ita.2 for ; Tue, 16 Oct 2018 10:11:53 -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=nKAUkAPuPDlFBmtURpYNjxr6/i+74M1VNtdiYpnxyyY=; b=Kq9Dgv5exf0x8iHKWtuCHgz/+KVeOJGl3cQGnIHXGmJFlGOx1m6QG6KPlV5wycgtIc vxaVh9MQuZkFFNkbT13ZoBd22N4NFiv6Xm6aEWfkSeMjj1FgWdBq1JqPhw4EkPMJOrmD 9xdpq7/HNOtX8RAOYArnl6nlVLFwmIH3jJBh8= 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=nKAUkAPuPDlFBmtURpYNjxr6/i+74M1VNtdiYpnxyyY=; b=rbsJqlp/ccxE4UtDy69w6Jxmry+WkPt5XKnWGv6lgAxobVNMcBs4VJUPlJ2llJ4Rfi h22Rn7AmT54Ja9q2yReAuNC1BLziliVc+ZNS83dRsc9OuzFTG8g/g05Nycg26wOJu1Kk IbX2ZJ92rrZF3pl0GBq4KkmcoO19aNGbfrrAy/YqAPLHsdKPMNdl6FmyXYlOb55dVaXO gKORIO2pCmPJKNdsWiWHyyWOBDKwj27GtzlHaeCav8nepZaf0D9TGTDnERCxtY8zvlIE ae7E6FzXLhWBfqj1XXwz0/EwKu2yQa1Mr4AcfPiusnXAaAYar05ja8HLH2a/zC2WODGe +eMw== X-Gm-Message-State: ABuFfoiuEzRFGsU/vfLAz/bW4LC6yYBH+upp4joAyL54cZndzfyNE+sF fFnWfWSjnynFg3HHilXud9mhoxo2SF2w2XhAUSUEWg== X-Received: by 2002:a02:844c:: with SMTP id l12-v6mr18462723jah.137.1539709912620; Tue, 16 Oct 2018 10:11:52 -0700 (PDT) MIME-Version: 1.0 References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <20181010153553eucas1p1b8f74f4aa45751ef029805fd118affc1~cSUmU58-F2963929639eucas1p1L@eucas1p1.samsung.com> <5BBE3751.7000908@linaro.org> <20181011111025eucas1p2125db99d798a60a8e38da97c2a1c7436~ciWHHd0YW0102601026eucas1p2b@eucas1p2.samsung.com> In-Reply-To: <20181011111025eucas1p2125db99d798a60a8e38da97c2a1c7436~ciWHHd0YW0102601026eucas1p2b@eucas1p2.samsung.com> From: Vincent Guittot Date: Tue, 16 Oct 2018 19:11:41 +0200 Message-ID: Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: l.luba@partner.samsung.com Cc: Thara Gopinath , linux-kernel , Ingo Molnar , Peter Zijlstra , Zhang Rui , "gregkh@linuxfoundation.org" , "Rafael J. Wysocki" , Amit Kachhap , viresh kumar , Javi Merino , Eduardo Valentin , Daniel Lezcano , "open list:THERMAL" , Quentin Perret , Ionela Voinescu , b.zolnierkie@samsung.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On Thu, 11 Oct 2018 at 13:10, Lukasz Luba wrote: > > > > On 10/10/2018 07:30 PM, Thara Gopinath wrote: > > Hello Lukasz, > > > > On 10/10/2018 11:35 AM, Lukasz Luba wrote: > >> Hi Thara, > >> > >> I have run it on Exynos5433 mainline. > >> When it is enabled with step_wise thermal governor, > >> some of my tests are showing ~30-50% regression (i.e. hackbench), > >> dhrystone ~10%. > > > > That is interesting. If I understand correctly, dhrystone spawns 16 > > threads or so and floods the system. In "theory", such a test should not > > see any performance improvement and degradation. What is the thermal > > activity like in your system? I will try running one of these tests on > > hikey960. > I use this dhrystone implementation: > https://github.com/Keith-S-Thompson/dhrystone/blob/master/v2.2/dry.c > It does not span new threads/processes and I pinned it to a single cpu. > > My thermal setup is probably different than yours. > You have (on hikey960) probably 1 sensor for whole SoC and one thermal > zone (if it is this mainline file: > arch/arm64/boot/dts/hisilicon/hi3660.dtsi). > This thermal zone has two cooling devices - two clusters with dvfs. > Your temperature signal read out from that sensor is probably much > smoother. When you have sensor inside cluster, the rising factor > can be even 20deg/s (for big cores). > In my case, there are 4 thermal zones, each cluster has it's private > sensor and thermal zone. There is no 'SoC sensor' or 'PCB sensor', > which is recommended for IPA. > >> > >> Could you tell me which thermal governor was used in your case? > >> Please also share the name of that benchmark, i will give it a try. > >> Is it single threaded compute-intensive? > > > > Step-wise governor. > > I use aobench which is part of phoronix-test-suite. > > > > Regards > > Thara > > > I have built this aobench and run it pinned to single big cpu: > time taskset -c 4 ./aobench Why have you pinned the test only on CPU4 ? Goal of thermal pressure is to inform the scheduler of reduced compute capacity and help the scheduler to take better decision in tasks placement. So I would not expect perf impact on your test as the bench will stay pinned on the cpu4 That being said you obviously have perf impact as shown below in your results And other tasks on the system are not pinned and might come and disturb your bench > The results: > 3min-5:30min [mainline] > 5:15min-5:50min [+patchset] > > The idea is definitely worth to investigate further. Yes I agree Vincent > > Regards, > Lukasz > > >