From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A41CCA04B8 for ; Tue, 12 Nov 2019 08:24:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7758E2BDB; Tue, 12 Nov 2019 08:24:23 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id C9A762B9E; Tue, 12 Nov 2019 08:24:19 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3EF3121FF3; Tue, 12 Nov 2019 02:24:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 12 Nov 2019 02:24:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=FhjiNAIaFN7cWBHfFYLPiWYZSZIr1ZlPvPmI3nFzCzY=; b=LbJBDXgTtfHu Rq8cJklUuyNDvjJ2OkhcCasiZTCJ9jBZd8UdVjQGXdn8OZi3RsCZuEIzGC4by9uk K41TlyxXjG1EI4oHTWw27y0qPEkQmLe9IP9kwlVvRHKkxgWDJODEW6k8AAjmIXGY 7rb1kSpQGuxM5mUAtRJt91YhO1W7KgQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=FhjiNAIaFN7cWBHfFYLPiWYZSZIr1ZlPvPmI3nFzC zY=; b=PZ882doyxVwouZgMSQ7cgPNCgjZYBfiHppQwm4c3gs7649jnt0VEZK+QS fE3ZxjtdqAH+egDyA05QyDzH/vmluYEhkX+tNuR9c0p6jHgaPMcZO4MBHAr5ovn0 5sbJVEhfKPdpH76gLJExMOUCHElu8qtOHDGf1XmRPxx3eo0/bOqK596uFgV05IoX Y70c5zvQDW0s+PMwvlJhPVRgj/XqEox1E7T4JRm/6/N0+pK9lJDhxjAE70A8rvJG RKIDxFXnaSIN+dVspEO+tPv8g90VfQ1HnbolvlU53KG3/8nRsfCGc0kZlpC9qHKh s+Pf4w2ff+V7MBDRDtfFvmoprsAsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvkedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeefjedrudeigedrledrudehudenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhm rghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (unknown [37.164.9.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 3DD7B306005B; Tue, 12 Nov 2019 02:24:13 -0500 (EST) From: Thomas Monjalon To: David Hunt Cc: stable@dpdk.org, dev@dpdk.org, anatoly.burakov@intel.com Date: Tue, 12 Nov 2019 08:23:29 +0100 Message-ID: <1922197.y3yMgDX9VE@xps> In-Reply-To: <20190724131803.30066-1-david.hunt@intel.com> References: <20190724131803.30066-1-david.hunt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH v1] examples/power: fix oob frequency oscillations X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 24/07/2019 15:18, David Hunt: > The branch ratio algorithm in the vm_power_manager sample application > can be very sensitive at patricular loads in a workload, causing > oscillations between min and max frequency. For example, if a > workload is at 50%, scaling up may change the ratio > enough that it immediately thinks it needs to scale down again. > > This patch introduces a sliding window recording the scale up/down > direction for the last 32 samples, and scales up if any samples indicate > we should scale up, otherwise scale down. Each core has it's own window. > > Fixes: 4b1a631b8a8a ("examples/vm_power: add oob monitoring functions") > Cc: stable@dpdk.org > Signed-off-by: David Hunt Applied, thanks