Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1946819ybl; Thu, 5 Dec 2019 09:26:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyCROBW5DHp03eOd8fTjWEaAc0y+QUKm4t5z/N9jhKYdr4X/ZqSCZ8b/73nZNbuS4fENfX1 X-Received: by 2002:aca:ddc2:: with SMTP id u185mr2608577oig.174.1575566760406; Thu, 05 Dec 2019 09:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575566760; cv=none; d=google.com; s=arc-20160816; b=l62pYuxYxJnD+LvUe4bopsW83ufdnIsiIv8+h+zqnVozgU/5Z+7VEoAbQUncZF5Yen Vj4HYd919n5RXmDdbeYlq4vArhCKPpYPvimZiauYYecVrDNjrXyIezU9xz7Wlr6I5yaI H13+fBdE7N0ZFYnyWkE4NxOY4R5eg0tXJF41JlpOZ6QhXuEFhQxKJZqoWDWAwY/PFokX VjDm5QGkngnsGse1lDQ8MhBesIzX5gbn2NGEBWscLqDCxMGeQP9z3jbi834UqQEk6JAk FIQ5JneguWAoMKA+e/6TV7NTPdcZeESdhp+npk8gatMJocGnWCjlRHdJmAy9poUi+E+s ln3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date; bh=AUKResrSj4PDPndp6b/pZ8CRnvsACMYrV72nvgevxv0=; b=MCu+KeGd7E+rRf2H0VQ6rkmb3Lm9xY9QIQyde2mhuu2yCJALi4OBbPzxd2vtXl9zOY 177+I5k6Ay51wsELI/lETlhn/7+BZI2FJu5JiNEoFG+AyGCHyI345Bl0C4N65FzmFzgq N19rgurD3H6uENJC1jSeerpYUapHb/ApVZZ0fzNi9/5e6sXk+UM0fKpp/OsGHk98G71R 5vlLRPqWfvGBfS/LzabJl4llmsCb9en9wpMjkTvKKXbmcOiOMEAgJ482Jameh/k2dzPC ZEQxc7SPNM5JK4IiqtAQLVtO9oBjgkziAiAVTT2IWxaVXcmKR11N5MQeir2kXP4NtnCT wMfA== 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 z10si3361423oto.50.2019.12.05.09.25.47; Thu, 05 Dec 2019 09:26:00 -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 S1730124AbfLERZP convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Dec 2019 12:25:15 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:31220 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730096AbfLERZN (ORCPT ); Thu, 5 Dec 2019 12:25:13 -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 xB5HOL2O069785 for ; Thu, 5 Dec 2019 12:25:12 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wpur48g24-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 05 Dec 2019 12:25:12 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Dec 2019 17:25:10 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 5 Dec 2019 17:25:08 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB5HP67N59506886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Dec 2019 17:25:06 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB11AA4069; Thu, 5 Dec 2019 17:25:06 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67935A404D; Thu, 5 Dec 2019 17:25:06 +0000 (GMT) Received: from localhost (unknown [9.199.48.150]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 5 Dec 2019 17:25:06 +0000 (GMT) Date: Thu, 05 Dec 2019 22:55:05 +0530 From: "Naveen N. Rao" Subject: Re: [PATCH 0/3] pseries: Track and expose idle PURR and SPURR ticks To: Kamalesh Babulal , Nathan Lynch Cc: "Gautham R. Shenoy" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Vaidyanathan Srinivasan , Tyrel Datwyler 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> <87k17au4rw.fsf@linux.ibm.com> In-Reply-To: <87k17au4rw.fsf@linux.ibm.com> MIME-Version: 1.0 User-Agent: astroid/v0.15-13-gb675b421 (https://github.com/astroidmail/astroid) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-TM-AS-GCONF: 00 x-cbid: 19120517-0012-0000-0000-00000371BA17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19120517-0013-0000-0000-000021AD7FD0 Message-Id: <1575566328.nhfi897fmd.naveen@linux.ibm.com> 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-1912050146 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nathan, Nathan Lynch wrote: > 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. SPURR complements PURR, so we need both. SPURR/PURR ratio helps provide an indication of the available headroom in terms of core resources, at maximum frequency. - Naveen