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 B6E7FA04B8; Tue, 12 Nov 2019 08:24:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F20C62BA2; Tue, 12 Nov 2019 08:24:21 +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-dev] [dpdk-stable] [PATCH v1] examples/power: fix oob frequency oscillations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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