From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5C65C433FE for ; Thu, 6 Jan 2022 21:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244977AbiAFV4P (ORCPT ); Thu, 6 Jan 2022 16:56:15 -0500 Received: from mga02.intel.com ([134.134.136.20]:36550 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244485AbiAFV4N (ORCPT ); Thu, 6 Jan 2022 16:56:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641506173; x=1673042173; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=9KodgYKG3fFjQi545R6D+Ahfgnlov8/fgX8Amfksz1Q=; b=DRsqlqIjEr+7Jx/Ha9aifdJu7ykyIPFoePyaMNlJ1N0pU4k1H18SS/Lj E9tK+//Ekxv74dDSRpgaipcxl5qiWn96QPJ7HcOyEOoXccrVLCRo7LJ+H sS9VVNppnojKZ770XJZrk1Gkj+NTwNmTsOXhtDN+u7s8bjmQi4FXEmD7l w/nw8ilGvXWqYB1/syag5FcF7En86B7Sd8OO3lXtDHWND6MbQ1+r9uf2L CcITjxLE+/q8dP9rKMTq3A8Q+X5H5h5xNT0iiUF4mpsDqQPwvCgtww7Io 9bkEutD4DGCM8fjoHOWZhWYDyE0RhV7PSGWRDOYKxieop9sDTyAAiwHbJ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="230086775" X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="230086775" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2022 13:56:13 -0800 X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="527097710" Received: from dwmarks1-mobl1.amr.corp.intel.com (HELO samudha-mobl.amr.corp.intel.com) ([10.212.136.192]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2022 13:56:12 -0800 Message-ID: Subject: Re: cpufreq: intel_pstate: map utilization into the pstate range From: srinivas pandruvada To: Julia Lawall Cc: Francisco Jerez , "Rafael J. Wysocki" , Len Brown , Viresh Kumar , Linux PM , Linux Kernel Mailing List , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Date: Thu, 06 Jan 2022 13:55:50 -0800 In-Reply-To: References: <87a6g9rbje.fsf@riseup.net> <1b2be990d5c31f62d9ce33aa2eb2530708d5607a.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-01-06 at 21:43 +0100, Julia Lawall wrote: > > > All the turbostat output and graphs I have sent recently were > > > just > > > for > > > continuous spinning: > > > > > > for(;;); > > > > > > Now I am trying running for the percentage of the time > > > corresponding > > > to > > > 10 / P for pstate P (ie 0.5 of the time for pstate 20), and then > > > sleeping, > > > to see whether one can just add the sleeping power consumption of > > > the > > > machine to compute the efficiency as Rafael suggested. > > > > > Before doing comparison try freezing uncore. > > > > wrmsr -a 0x620 0x0808 > > > > to Freeze uncore at 800MHz. Any other value is fine. > > Thanks for the suggestion.  What is the impact of this? Uncore scales based on its own heuristics based in P-state change and works in package scope. So to actually see the effect of P-state change on energy you can remove variability of uncore power. Thanks, Srinivas > > julia