Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1733275imm; Wed, 16 May 2018 02:09:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrOM/50rjNP46jpsDQAB5erY1hBXsqX04INOagcAmt/LJ7qTumvbevqVWX0qRxqCX0aksFl X-Received: by 2002:a17:902:5ac6:: with SMTP id g6-v6mr50857plm.262.1526461763248; Wed, 16 May 2018 02:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526461763; cv=none; d=google.com; s=arc-20160816; b=Ofx8Zj72pbQygkloiVnHvnmi/pF0+kZSjeZJH3Cq7BEVUmeKlQhkHzDSk2+0rJuHv0 01q9ZPfjqtOoyVBV56ypYVFrLAi9wvV41n3kT0z8oBO10WC46WnQ7t2P283fQ49HFKJ7 C+KU2qSxz/ysTfmv5lQVtvx8BVXdSwoHyfiWEZOGQfn11/vX+J4QLTh4vFfX9BWHt6TH oATkawId88IelowM3NtIp2NV1Y5BDiQRXNQZVQwmPO2iAxH/UzsVDeYlaEVqWhHh90Wt cgEfs8lFGDYMh9MR2LNcOP3ez3vKlaquDR1qr/f2QSFKalAmedvyV1Ev1Z+D0tTSgTO3 bkKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=XASgCtpWeLdyl+jOb502KPLE9djV1hLzUo1/2OaWR38=; b=L9dlDBZzd4JT6epanzQyYYH881B0BLoEnGeZbgA05S9ZRMyUNu4WbG/7QJ5FSdh7mY 872FTcIo94vROxLiIFr/nfvrjmzqkyVfa6uEe0yHldEad6BQvsev3qAwPPS2W4Aq98e6 SK6CJggDNMDdIolqoUd6xfcyTn9w/GQ9LgYAATRAeD30W5LnTyupi0/DXW9qCd24dOyJ pw2BXcBECyXWcupvZLEie/fnBi88yLKs68hZMGfV9ns8VoD0v8/JOc7R9gm68DBMC8mE qeFyp+epA9MTeWR3MSrgGfsw2YbsPytNTRecknuszJOy2Rh7QRB+PYF3QhQmEtIxTTB1 PA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I3jXNg33; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17-v6si2223738pfg.227.2018.05.16.02.09.08; Wed, 16 May 2018 02:09:23 -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=fail header.i=@gmail.com header.s=20161025 header.b=I3jXNg33; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbeEPJHu (ORCPT + 99 others); Wed, 16 May 2018 05:07:50 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34303 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbeEPJHr (ORCPT ); Wed, 16 May 2018 05:07:47 -0400 Received: by mail-oi0-f68.google.com with SMTP id l1-v6so44544oii.1; Wed, 16 May 2018 02:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=XASgCtpWeLdyl+jOb502KPLE9djV1hLzUo1/2OaWR38=; b=I3jXNg33HataI0u/eKzvvrCvTDy84OyEIQZoU2NG23bNdsJMpl5vjaEi9w6/M5Uocy PVwUQSPm7EBTBZJ9aCEOeDG4RBQitvK95NFoEQoV9kvDtryWE+DR4PN10LXkscRK4huz y81iJmpAAs1aT8/kRPstip2JcioVr0l71ppCjV1l7javY6C1JWreduzPVk9/Yt2gl8a5 SXE/g3Z69YPo6+lhPmlc5kr14wPg3LEX9vnR/RvfkYrUF6Gezr+D7lX9m3PXHmQl2dXY dteC82fcaAG7enlq8lssnxDqf4r09fWq/5vIh2VJr4MMBOzDIhUyRYXTb4R93DNv84TL qsqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=XASgCtpWeLdyl+jOb502KPLE9djV1hLzUo1/2OaWR38=; b=Fj7lfgTFBfH8SSCEY1iSJTr2SovLk08HM5DuwrJHhmf+rEBhM8aAhYNFhcnRsrmBag QFtnON0ro4d8suf3iLICYGx7c1Hrd33P9fEds4Ecigf7RZ/mirnZfX8OTF8PgYSFwbmO 1NJBa94dQGBC2DQJVl/4UQyzOuqtJFZeKCtqVFmJQKZyvMbhDMp6S1xXI0kV4qWFrir9 KWyfaVLHqYioYh1i12axRDBgq1Bs5Y6rs+tdFR485vB0umCqXn75mmWqnoa1d+shsTLi wtzlnuq2StSU//jSIZJ51p+PwAMIRPV8+rY7kkQkAsBsiUjaxC3fG9xo0SGfMskORUso Smsw== X-Gm-Message-State: ALKqPwfOtiY7JCFMKzjwX/aCEHJztc68R9EY+RNa9GEhIN2TYCoTezcg qTc5sAzXgOGFtPtgbSzzH0c90DEgf+lHsAB89b8= X-Received: by 2002:aca:4c11:: with SMTP id z17-v6mr27667oia.174.1526461667013; Wed, 16 May 2018 02:07:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Wed, 16 May 2018 02:07:46 -0700 (PDT) In-Reply-To: <20180516072929.GN12235@hirez.programming.kicks-ass.net> References: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> <20180516044911.28797-3-srinivas.pandruvada@linux.intel.com> <20180516071640.GU12217@hirez.programming.kicks-ass.net> <20180516072929.GN12235@hirez.programming.kicks-ass.net> From: "Rafael J. Wysocki" Date: Wed, 16 May 2018 11:07:46 +0200 X-Google-Sender-Auth: WzJSCOSGzasQt3_2tSuu9xHmcbo Message-ID: Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting To: Peter Zijlstra Cc: Srinivas Pandruvada , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Mel Gorman , "the arch/x86 maintainers" , Linux PM , Viresh Kumar , Juri Lelli , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 9:29 AM, Peter Zijlstra wrote: > On Wed, May 16, 2018 at 09:16:40AM +0200, Peter Zijlstra wrote: >> On Tue, May 15, 2018 at 09:49:03PM -0700, Srinivas Pandruvada wrote: >> > intel_pstate has two operating modes: active and passive. In "active" >> > mode, the in-built scaling governor is used and in "passive" mode, >> > the driver can be used with any governor like "schedutil". In "active" >> > mode the utilization values from schedutil is not used and there is >> > a requirement from high performance computing use cases, not to read >> > any APERF/MPERF MSRs. In this case no need to use CPU cycles for >> > frequency invariant accounting by reading APERF/MPERF MSRs. >> > With this change frequency invariant account is only enabled in >> > "passive" mode. >> >> WTH is active/passive? Is passive when we select performance governor? > > Bah, I cannot read it seems. active is when we use the intel_pstate > governor and passive is when we use schedutil and only use intel_pstate > as a driver. > >> Also; you have to explain why using APERF/MPERF is bad in that case. Why >> do they care if we read those MSRs during the tick? > > That still stands.. this needs to be properly explained. I guess this is from the intel_pstate perspective only. The active mode is only used with HWP, so intel_pstate doesn't look at the utilization (in any form) in the passive mode today. Still, there are other reasons for PELT to be scale-invariant, so ...