Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1792926ybl; Thu, 5 Dec 2019 07:07:17 -0800 (PST) X-Google-Smtp-Source: APXvYqw6QEq44CRJMqCV4VZycVKI9TXEPS1LA/P/vDP2ywF8ubFLyW0zUJx/mPOCUQpAcplR/5zU X-Received: by 2002:a9d:4d01:: with SMTP id n1mr6467756otf.245.1575558437657; Thu, 05 Dec 2019 07:07:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575558437; cv=none; d=google.com; s=arc-20160816; b=fUzbtqFIAJzxvuGi9JhY2Ar6mpXM00PlDdg3pcUlLntMxRviGeHtDMKc2QEwh5un+F KsdfQfHka1QaMmWhB538MIsSFeudcWto4xl+pXXIHSzKtNlV/MdHNjow33nYsif6QHNK rgd6PYRsP58NMBiwcH64LS4Qx9+cS0fC1HlcJfFoDC4Q71AtvqulC5wCdrQIFjoxAlf8 W9U2Od8+9bBXxa5MGBBcO2iiZXVrK9RpHU41bfHgtJ+07EAcUb0ZIarDS2ymfLIdTBVA prrJyCD6wF912GIYk9T5ZH+thBF1HOU6ZgYwWd/BMrhZ3Jb/es4SoJS7vbPyeuN90dX0 Xt0Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :references:cc:to:subject:from; bh=OEcXwgvpVEFAe2MHt0gjnFA+7rqq4+uNOPVSV+tttvc=; b=PWjXIv5zOlBc9/edTL27EZeVT+PAAemgygLXDPsZtZnEt7VTnmzVJsrmmhzrxuv7Mg eTsxD9IxBu3lfEIgmqNSoM1xTaoDZBLmI2+cfcl6rD9K4EFaE0tbAx8Xx+/6GuliwLv0 LX/PYi9cjUGD+cv3lRxsQXtfyn4WS5+DYA6VFSBrZbWhyqpsrzFq/tUdEmVGzFWaz2R7 RQw1xWiTx5tSDXdYkRqRf1tt640FCy2hLGjfsFHTxN52edg5bEdne2l878qRnU/e/TRs kBaqNW9jgP5DnzCZz0433vYhjClNpbFqcKdUpJxO1XHmnisgUQIdT05Mw78V+ok03FAU x93w== 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 q5si4737978otn.33.2019.12.05.07.07.03; Thu, 05 Dec 2019 07:07:17 -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 S1729735AbfLEPE3 (ORCPT + 99 others); Thu, 5 Dec 2019 10:04:29 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:65412 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729187AbfLEPE3 (ORCPT ); Thu, 5 Dec 2019 10:04:29 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB5Ev4v6102839 for ; Thu, 5 Dec 2019 10:04:27 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2wq114j3uq-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 05 Dec 2019 10:03:58 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Dec 2019 15:03:33 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) 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 15:03:30 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB5F3SqV28639464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Dec 2019 15:03:29 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE856AE058; Thu, 5 Dec 2019 15:03:27 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A348EAE056; Thu, 5 Dec 2019 15:03:25 +0000 (GMT) Received: from JAVRIS.in.ibm.com (unknown [9.199.58.137]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 5 Dec 2019 15:03:25 +0000 (GMT) From: Kamalesh Babulal Subject: Re: [PATCH 0/3] pseries: Track and expose idle PURR and SPURR ticks To: Nathan Lynch , "Gautham R. Shenoy" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michael Ellerman , Vaidyanathan Srinivasan , "Naveen N. Rao" , Tyrel Datwyler References: <1574856072-30972-1-git-send-email-ego@linux.vnet.ibm.com> <87r21ju3ud.fsf@linux.ibm.com> Date: Thu, 5 Dec 2019 20:33:23 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <87r21ju3ud.fsf@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19120515-0020-0000-0000-000003946102 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19120515-0021-0000-0000-000021EB8F17 Message-Id: <48823589-b105-0da3-e532-f633ade8f0d9@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-05_03:2019-12-04,2019-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 spamscore=0 priorityscore=1501 phishscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912050126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/5/19 3:54 AM, Nathan Lynch wrote: > "Gautham R. Shenoy" writes: >> From: "Gautham R. Shenoy" >> >> On PSeries LPARs, the data centers planners desire a more accurate >> view of system utilization per resource such as CPU to plan the system >> capacity requirements better. Such accuracy can be obtained by reading >> PURR/SPURR registers for CPU resource utilization. >> >> 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. -- Kamalesh