Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1628119imm; Thu, 18 Oct 2018 01:13:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62AV+lIo09U5ErrUs6wQ/Od3fV7BDZtDrOl+q77B2eD0VzwEQCB1XI79jZMLh7zvcv1imeQ X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr28563050plf.222.1539850400857; Thu, 18 Oct 2018 01:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539850400; cv=none; d=google.com; s=arc-20160816; b=pnQMtHtAOOasZUm0eJULN4jyfGbQZigcP+ohcckLaDcEV1KYbAiLEKvCxBBOpaZSnl +3RUm4k+ksdO8FIcwejtQz+3snFh3QmVXEBwnxkt9uLxCpT/9oRSBmHO4k3a28XPQ767 2UOdTMuzzjI+He2ZFHbvHhCSihMCAMQPuapxXQBTxcXJggfaVVC2bPQ0bnwtHZq+adqH TqF3N17BlIQDPbP0lgQBk30EcovWc/IRSE3P6SPe2nX9UJW2iXgKLFDj/zKFjhm/7S/k 8NXxgsVauXR3PuWPVOk78QONTlxI2M3u7qFPoGhf9xYq73fflvNAENZbtlPcumYTdQMd QQlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:from:cc:to:subject:dkim-signature:dkim-filter; bh=c6C6h5a+JUjlckMI5xgYQjKlgLQlLPtyXbf7HPWhgDM=; b=I4zmkFxhFD9JU0vo/sRq7yC6zn3DaBpr20hCxg7diO2Jd2uyTFv8U6zheUkXUORViY DnS+UfLMoW2rd+CrBXxRvXTusgyNiVeaNuLBHBflIWhpiZH97Z38USEvlt3IEJWuW02m Er2fOZTQA5pSthQBTaVxlkx2s1NFVgINskW/rVMWqpZHmRZgdHSws/W7d5wCNnbzd8gj HlrFFyci6QhzicnLK8SrAYq+LjfeGmZyEdP20/69+trRC5ZdcisJJG/zNEU/1DkjRsdN kSSrAw1BP7CGNQLNwzdEdv3+NDKFaum0Nd/yzjOdLxuO5Hv2ujgQq3qwKfF5EZlrIbXw EDQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TvXRJKbM; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si19615070plr.267.2018.10.18.01.13.05; Thu, 18 Oct 2018 01:13:20 -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=@samsung.com header.s=mail20170921 header.b=TvXRJKbM; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727461AbeJRQMa (ORCPT + 99 others); Thu, 18 Oct 2018 12:12:30 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45356 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbeJRQMa (ORCPT ); Thu, 18 Oct 2018 12:12:30 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181018081239euoutp023238cb62a519976f4f7ed14b352a54eb~epb5W0S7U0688706887euoutp02P for ; Thu, 18 Oct 2018 08:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181018081239euoutp023238cb62a519976f4f7ed14b352a54eb~epb5W0S7U0688706887euoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539850359; bh=c6C6h5a+JUjlckMI5xgYQjKlgLQlLPtyXbf7HPWhgDM=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=TvXRJKbMXVhzsss4e/cou9eF9DJOp9c1KabKBq1SqefSj0tVv1rFwbhMLXVyT+Xvr 4VdbKqlR2sb/33ds3Y2ikzw6MAxy+/u/VUWBK//PuE1lziFxvQJFT/dyQWFmXApRTB F1H0nQ+7Y+0DL515yY1LTmQShsHb4sFwh2nsD/wA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018081238eucas1p1aa1019e68dd0744e1a14df6ee0e09d5f~epb4DWTOu2170621706eucas1p1I; Thu, 18 Oct 2018 08:12:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 49.A2.04441.57048CB5; Thu, 18 Oct 2018 09:12:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181018081237eucas1p1380ba533db3f718b6ada8289e83f0f10~epb3RbYC73110831108eucas1p1j; Thu, 18 Oct 2018 08:12:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181018081237eusmtrp180501b7cca49eb32f17036a4e0edc9ed~epb3Aztv11288912889eusmtrp1a; Thu, 18 Oct 2018 08:12:37 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-63-5bc84075fe24 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CA.A2.04128.47048CB5; Thu, 18 Oct 2018 09:12:36 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20181018081236eusmtip1d96001ee542d5337c71797789e1b1220~epb2Yh1kX1409014090eusmtip1m; Thu, 18 Oct 2018 08:12:36 +0000 (GMT) Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Vincent Guittot 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 From: Lukasz Luba Date: Thu, 18 Oct 2018 10:12:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SWUwTURSGczvT6VCtuS0IJ7jFRhJFZYmiNxFFIzFjjNuLMWAiI4yIAtYO 4PqA0QAiEJegtJbFGAGbRqQ2gIrKpgURRBFUlFgMJLggSLVRH1DbKZG375zz/2e5uSylGZcH skmpaYI+lU/WMkq65vGvZ0vT17bGhjnKwsjvrwYFqS6qkpMS5xxS+rJXTk5dq2JIYWO+jEyY ixnSfdfEEGd+CyIvGspkxJ7fICND1iqaFH8vpMjgQAFDugoNFMlpcVGk+ge3Vs1ZSiyIu2Ps V3C3K4O5a/UfZZzVfIbh3vXWM9zDYouCG33Qw3AFNjPinNa525QxysgEITkpQ9CHrolT7svK rUS6N/5Hmhr7UCbK1eQiHxbwcrB+MChykZLV4EoET9s7aSn4jqDh/g2ZFDgRdEx8kk9aBtqe ei0VCB4Nt3otIwgaO7ORW+WLV8KT/iIP++Ew+PVtnHKLKFwmh/q86n99WZbBIVBnPuTW0DgI TM1/PBNm4p3Q4rjq8aqwGtoMg7SbffB2uHm5h3EzhQOgb7BUJvE8qB0xefo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0vcejKfCcKWl9j+dg7z BEahWUjaZyFpmYWkZRaSlgWMLKsYRVJLi3PTc4uN9IoTc4tL89L1kvNzNzECk8C2Yz+37GDs ehd8iFGAg1GJh/dB6vFoIdbEsuLK3EOMEhzMSiK81WYnooV4UxIrq1KL8uOLSnNSiw8xmgI9 N5FZSjQ5H5ig8kriDU0NzS0sDc2NzY3NLJTEec8bVEYJCaQnlqRmp6YWpBbB9DFxcEo1MO7o WqRT+8Po1cTGe1vWCLPWZfKnJEedX+r2oi1HOOUqdz1/x/WVK864Jx2f4eMRYOjI7jUzq+dC iVMe76wVYYsNOfRz231Lo5Uq6ldcOfzHVEXqt+FSZoupU9i+iusJlJj+lYzescS3iqf/mfb2 1HrxxRfY05c8d/VxlDi2dsbL8zc7dLT5lFiKMxINtZiLihMBfeW3vRgDAAA= Message-Id: <20181018081237eucas1p1380ba533db3f718b6ada8289e83f0f10~epb3RbYC73110831108eucas1p1j@eucas1p1.samsung.com> X-CMS-MailID: 20181018081237eucas1p1380ba533db3f718b6ada8289e83f0f10 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181009162509epcas1p4fdd2e23039caa24586a4a52c6d2e7336 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181009162509epcas1p4fdd2e23039caa24586a4a52c6d2e7336 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vincent, On 10/16/2018 07: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. > 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 Unpinned runs on this platform have a lot of variation. The tests take even 16min to finish. Regards, Lukasz > >> 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 >> >> >> > >