Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp864355imm; Wed, 17 Oct 2018 09:25:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63y0a0OVEBH24eJQQqf/0DPEJpRCirlOd9Tv3ZcMC2a4TPcvZtcMlwPeqwKMCabZ83SfbCD X-Received: by 2002:a63:a047:: with SMTP id u7-v6mr25183965pgn.145.1539793505990; Wed, 17 Oct 2018 09:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539793505; cv=none; d=google.com; s=arc-20160816; b=wXF++o1prvweN0EBIJ7pxQ6GsNS14TGapahtOMVuq6nbRbV7bsmuKD2O7N4xEFDBTG 9q7HJ+coVwEtAuhOg3rPxJwiyh1CRIWfHlNqburRD33blsTNTXSMTOOsj7HO7M4yjFcp gDdIx2BVQwOFzMzfjQQUgDBivo3wwPyAILLlVFs2wx65g6zJZRTwo5ef0fC9FX8+JLXP 8vWWr3YxBPux0YFg9g4YA5KjByuaOualUnf2A0QQVdPbfODxVqQF6kdOgQCOjKRJC5tR gdyfTPbogtUF7+z0ozVRRCpNtvTq/iL8gHU29y7N4zslY86yGr77zpE7GZVGkEXcnu1D REWQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=iNM2n6BlDhj5BCTHFnjmqv+8aMrp/w65o+CoQC2jUeo=; b=yMaqrjCs3frRSMe+MLADtxzP5mSRPhAJ7AwAnDXEg2sdrx/HQeRDUmvi5qUu2j/yi1 A2ZD4nm+lOxNZkagbFuE9ZfGGBHjb11ApxKGm5j2Lf5yGGTm15TYJLGEbI/MZ9/rYLUV c26b1MjsrvsORX4/BJlESsPgJQjztoDEHSqf2VKNk6cZVOmnZ8v88eKJb4TVyyjxoBgE V0uNNL/VcDlXOhmuBPAUCqYmd0GrZh61iNMa/4Tre4M9KaJA5cqQjwCRGec6HwWP4xfd Ag6DI8jyKNk1I3cFve3E3IEtswajk2dRjZdH2mGETFXWGt/AavRzcq1OWTKNzI5mMRZe cgFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KRqHCNyh; 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 l91-v6si18488567plb.315.2018.10.17.09.24.49; Wed, 17 Oct 2018 09:25:05 -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=KRqHCNyh; 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 S1727686AbeJRAUo (ORCPT + 99 others); Wed, 17 Oct 2018 20:20:44 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41810 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727037AbeJRAUo (ORCPT ); Wed, 17 Oct 2018 20:20:44 -0400 Received: by mail-qt1-f194.google.com with SMTP id l41-v6so30691702qtl.8 for ; Wed, 17 Oct 2018 09:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=iNM2n6BlDhj5BCTHFnjmqv+8aMrp/w65o+CoQC2jUeo=; b=KRqHCNyhw7B51V4aOIODjzKkIzqfh4wjqeG7sIhWcU8VgvJX8zqLSdvo2TnuhcD1yh yBHeqxBhYLPJts0dS1ZiHX5CvwRipxZBr84UUvXsdzMK7KG277ssBwnM74DgCeLpjJwo lM9XkYyf6w/24KZ1S9EGQ5VGHH7QstEDVD3cI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=iNM2n6BlDhj5BCTHFnjmqv+8aMrp/w65o+CoQC2jUeo=; b=InIjyY9EtgcmfGPtBO5OK83Vp+vvdyTpqhH9inFKVyaJHOfsGyI+NInzXtrfQcE2FJ NUOIkaJN351qyPuuyv+eXrGlEaTT4mqqu/m0nFlCwlDkP+Gl+Mlr/fmxirDbYr8Ag027 cvTEEZzjjrjTZa8TwdgrSS4CSM7jisHbkUCZ4X83h17lj5kyyszB5xLoW/pci3u5YlQ5 xDgN9UJC77oMcJlFqCd+KgsW0tVa2jn1d/z6fkKUnpwSHFFTiSlk3Qe0cKwEDP1lSWzy 1vg4REnRbKXPddwlnbqfcJZoZnFbMAzhFannteZy5mOON2zqEj4Ghnu+JD9JqNAIWhf8 NKHA== X-Gm-Message-State: ABuFfogQkmLbXAw9O4sYUu5gT07T+w0gS2dtCtJifsQI48GcbFVK0iBg HHHJkWYpl3PeGwkVhTP6ISHjdQ== X-Received: by 2002:ac8:c0b:: with SMTP id k11-v6mr25849475qti.31.1539793456493; Wed, 17 Oct 2018 09:24:16 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-245-97.washdc.fios.verizon.net. [71.255.245.97]) by smtp.gmail.com with ESMTPSA id 140-v6sm12506610qkj.13.2018.10.17.09.24.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 09:24:15 -0700 (PDT) Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Vincent Guittot , l.luba@partner.samsung.com 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> Cc: 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 From: Thara Gopinath Message-ID: <5BC7622E.6000201@linaro.org> Date: Wed, 17 Oct 2018 12:24:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/2018 01:11 PM, Vincent Guittot wrote: > 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. Hi Lukasz, I agree with Vincent's observation. I had not seen this earlier. Pinning a task to a cpu will obviously prevent migration. The performance regression could be due to as Vincent mentioned below other tasks in the system. On another note, which cpufreq governor are you using? Is the core being bumped up to highest possible OPP during the test? Regards Thara > 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 >> >> >> -- Regards Thara