Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1873050ybl; Thu, 5 Dec 2019 08:19:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzZua0Vdg8Ty+8w+H9RX2S8o1GU/aJWSj3ytHnf4RhGR/Pxoak0UNFDyAIU7sHIrSMPJJHV X-Received: by 2002:a05:6830:1705:: with SMTP id 5mr7509110otk.72.1575562784572; Thu, 05 Dec 2019 08:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575562784; cv=none; d=google.com; s=arc-20160816; b=vuWf7uDlWBLFYMme8TSvn4urgJJVbgz8VR2lfotowRDwN2Dn48zhxEaXOmpLnOjVHb 5DLBHHdcgMOy0sAPVHPbDTiNG8Kx/7ZH7zR1Ve2hVRh9C0I4UG3TZyVSKM2FvQY034JY vR2eobP9GHXNIxjiYHuNUoauhCY9Z0VI8ER4IGBlTvC+ZDcYERvJ1U9r3u+KvEmUgU55 wMG6aH4uG+/rwIbxHJbyIgB7h0lyDiC8IraPbGbsfTazrInSLrBSPyPyo5UkYO4SaOhr 0v23QrIbRKJzEYFuuGhiX8qnqdfSltcsL6d9nZHp5S89lc3aNCRBSp0+9lI5XR/eZREJ 0wvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=a1rCEvZHeHK1ZwLiRzPXctKnwLHZSplpVnzgt+Mm9KY=; b=gaBx/9hlKL4HFu79QhscOI+inWdnvnoBCVfrY3qEj+bVkxjEF6UWiZsbSmpF8v0IXf mBJYL9RlpmDET8lxoigjRZcHSWcAyXbMcEyCyinCld6m15ZBOj5EZDXPw3S+Vo40eqV0 e0JUIz+ejRYbDA5y04I1KDS1etNPnQIE53zUbm7/qd/4dXM5HWOb81C7lewPv2ufMaLO 2Tk66UR4wUyuycmUcSGptDDdJw068HUZE/QAJwusCJYguhX98OO2gg58MQWOnNiUMPuq b2J8iWXKJAXUs4Jl7gnG7iL0MGSMOSbR6Zwgn39T9uKAINyzroJsRVUIYLpwfl78yXac ADOA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u131si3743254oib.257.2019.12.05.08.19.32; Thu, 05 Dec 2019 08:19:44 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729396AbfLEQQi (ORCPT + 99 others); Thu, 5 Dec 2019 11:16:38 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:19612 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729430AbfLEQQf (ORCPT ); Thu, 5 Dec 2019 11:16:35 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB5GCrk0025762; Thu, 5 Dec 2019 11:16:27 -0500 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wpur469s5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Dec 2019 11:16:27 -0500 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xB5GFPhT019887; Thu, 5 Dec 2019 16:16:25 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma05wdc.us.ibm.com with ESMTP id 2wkg27r1ky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Dec 2019 16:16:25 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB5GGPpB17695078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Dec 2019 16:16:25 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 554BD112066; Thu, 5 Dec 2019 16:16:25 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38977112061; Thu, 5 Dec 2019 16:16:25 +0000 (GMT) Received: from localhost (unknown [9.41.101.192]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 5 Dec 2019 16:16:25 +0000 (GMT) From: Nathan Lynch To: Kamalesh Babulal Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michael Ellerman , Vaidyanathan Srinivasan , "Naveen N. Rao" , Tyrel Datwyler , "Gautham R. Shenoy" Subject: Re: [PATCH 0/3] pseries: Track and expose idle PURR and SPURR ticks In-Reply-To: <48823589-b105-0da3-e532-f633ade8f0d9@linux.vnet.ibm.com> References: <1574856072-30972-1-git-send-email-ego@linux.vnet.ibm.com> <87r21ju3ud.fsf@linux.ibm.com> <48823589-b105-0da3-e532-f633ade8f0d9@linux.vnet.ibm.com> Date: Thu, 05 Dec 2019 10:16:19 -0600 Message-ID: <87k17au4rw.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-05_05:2019-12-04,2019-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912050135 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kamalesh, Kamalesh Babulal writes: > On 12/5/19 3:54 AM, Nathan Lynch wrote: >> "Gautham R. Shenoy" writes: >>> >>> Tools such as lparstat which are used to compute the utilization need >>> to know [S]PURR ticks when the cpu was busy or idle. The [S]PURR >>> counters are already exposed through sysfs. We already account for >>> PURR ticks when we go to idle so that we can update the VPA area. This >>> patchset extends support to account for SPURR ticks when idle, and >>> expose both via per-cpu sysfs files. >> >> Does anything really want to use PURR instead of SPURR? Seems like we >> should expose only SPURR idle values if possible. >> > > lparstat is one of the consumers of PURR idle metric > (https://groups.google.com/forum/#!topic/powerpc-utils-devel/fYRo69xO9r4). > Agree, on the argument that system utilization metrics based on SPURR > accounting is accurate in comparison to PURR, which isn't proportional to > CPU frequency. PURR has been traditionally used to understand the system > utilization, whereas SPURR is used for understanding how much capacity is > left/exceeding in the system based on the current power saving mode. I'll phrase my question differently: does SPURR complement or supercede PURR? You seem to be saying they serve different purposes. If PURR is actually useful rather then vestigial then I have no objection to exposing idle_purr.