Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp506919img; Fri, 22 Mar 2019 02:47:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKto2Jy8hNCorNADR21cKYVvKGkZKqD/mbNocK4Oku2JIp1VBjHBlcpte/acYg8J0bRfAC X-Received: by 2002:a63:6c43:: with SMTP id h64mr7781290pgc.22.1553248035417; Fri, 22 Mar 2019 02:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553248035; cv=none; d=google.com; s=arc-20160816; b=cwDiBBrYbIoApmxHVymzJqhqNbZqpdR6SHhol/PgqI2C0Gcda+LY9zPv71GzXqoiTg SSoo0Xf1+pdwzOG8Pb+YlQxwIyd+SvSbQ1gQM5LGWVuO6sSkqdkbbgU6mMRlyPDC7FjZ F0ro7+xsIq+pqiVnGHJ9v9hmPYmPpPxC0c5Y208HKu94favMPpYzmCxF7i7riBkbaMlH ahhbavntoPNOpyfAWvcn8gwNctF0Ufg3V8mW26k+109muAQqDTxKDoa79kJcCqGLHIFg t9xgL9Lqs/mK7M07tM32I9+7yVFi6DlqVRKTg0dpFv19lNg00oX/htIL5NU74MJ6XngT indA== 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 :in-reply-to:references:mime-version; bh=i4/MNnc1Sea+usyPpKw/vkxvIwHz+vkgmpIh97ysm0E=; b=gv7RLmu5zXRwOOrWUNRX4m2Ins5YnPso46+uKW0IkCi3CoAhsB91A2gaRLcUo+Bxef QnlLjNjk0zyZJzDy2DkzKQfWT7MkSQ2qPwNc0htk9Q5AYDiMJuevVOTwZ1nePqVzweJz 6ezUfQ8heTdfMkX5dMjGRl+wZ05p60PpcDfGbESkwtMz4b6/doTmZBYIVwANMAchAbBM 0PXGGOQtyFZxH0JqVJC5BeuswNcek8ykuIs3pvkX8b9wkwBinuYerbs0qJdP0xnjD2kT uXX10pRpvWdULMG7ajd8NEqiEW/yGQWgiKoHYY2d3r1lS1GioEh7E+u3Boj5OwigZ0sQ iPgw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si5951285pgs.568.2019.03.22.02.46.57; Fri, 22 Mar 2019 02:47:15 -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; 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 S1727831AbfCVJqI (ORCPT + 99 others); Fri, 22 Mar 2019 05:46:08 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34602 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbfCVJqH (ORCPT ); Fri, 22 Mar 2019 05:46:07 -0400 Received: by mail-oi1-f193.google.com with SMTP id u12so1267356oiv.1; Fri, 22 Mar 2019 02:46:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i4/MNnc1Sea+usyPpKw/vkxvIwHz+vkgmpIh97ysm0E=; b=KNQNd6GtdQWTFZa8rhvGcIgWweoOHRpemQsK7c2fH9g20VP2rN37V9eo3YfiI5jdgM qmcbtEfp9svUR4fPnwSVbgE47QTBPR73eE3TDDSplttCuA04YrrjU24EtKZOH7JwkUWC ew3KsTqAEi3TMIzRyRBYnjfLp45xXnIPE6vmRAHsCZ9i9ZjkXcB123cjPwPXQ5+V22+s 5wmxw1Uaex1cculPB7iVGiSZ1/B0OT351bTJupaV9zt2sXf4Ewwelz33gc84h239vYaJ Ffx20A6STvRO2kxd9Tf8VVY5wq/hSUbwnO2ELAzoPQs2WoylW/aa8xM/Xq/Ob5TlTw7K Qv0g== X-Gm-Message-State: APjAAAX15PitLp45M7k0lebsYVi3TsXjmPfCSH7T5udFBAEdpUNjXMTV HsmxdC7kEwHBDTOgg1/v8F1KbLGl8rxKAtV6AnEBWg== X-Received: by 2002:aca:6046:: with SMTP id u67mr1152190oib.84.1553247966744; Fri, 22 Mar 2019 02:46:06 -0700 (PDT) MIME-Version: 1.0 References: <20190322072942.8038-1-huntbag@linux.vnet.ibm.com> <20190322072942.8038-2-huntbag@linux.vnet.ibm.com> In-Reply-To: <20190322072942.8038-2-huntbag@linux.vnet.ibm.com> From: "Rafael J. Wysocki" Date: Fri, 22 Mar 2019 10:45:55 +0100 Message-ID: Subject: Re: [PATCH 1/2] cpuidle : auto-promotion for cpuidle states To: Abhishek Goel Cc: Linux Kernel Mailing List , linuxppc-dev , Linux PM , "Rafael J. Wysocki" , Daniel Lezcano , Michael Ellerman 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 Fri, Mar 22, 2019 at 8:31 AM Abhishek Goel wrote: > > Currently, the cpuidle governors (menu /ladder) determine what idle state > an idling CPU should enter into based on heuristics that depend on the > idle history on that CPU. Given that no predictive heuristic is perfect, > there are cases where the governor predicts a shallow idle state, hoping > that the CPU will be busy soon. However, if no new workload is scheduled > on that CPU in the near future, the CPU will end up in the shallow state. > > In case of POWER, this is problematic, when the predicted state in the > aforementioned scenario is a lite stop state, as such lite states will > inhibit SMT folding, thereby depriving the other threads in the core from > using the core resources. > > To address this, such lite states need to be autopromoted. The cpuidle- > core can queue timer to correspond with the residency value of the next > available state. Thus leading to auto-promotion to a deeper idle state as > soon as possible. Isn't the tick stopping avoidance sufficient for that?