Received: by 10.213.65.68 with SMTP id h4csp1766184imn; Mon, 19 Mar 2018 12:39:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELughDsAOEb0vaWqoyzc4htt+uB6z/YHkG7JOOamsmXY4VRKXuPjqaJsNcgHKUn1lOz9/ZRw X-Received: by 10.101.83.75 with SMTP id w11mr9794973pgr.197.1521488392391; Mon, 19 Mar 2018 12:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521488392; cv=none; d=google.com; s=arc-20160816; b=CFGnpXN2CE7KpT1/JoVlxUPeC1YaL7BE8otH1vsoT2igMnJDyXW6wjneMqc0gTT/Be LNQiyqKEMDKsZDjRKXx3ngmwUqZiek4gFf/V9qrASClUWpwFHLQRgbO8RgB6/GwjDsLv /UFTd50ndtMKS5Wv+oFtH29RniEVnbuGWzv8JADAqwuz22cRk/jUOAjl89weq5ZKNLtK 3iXK2e7aIM3mX+a09T0rQkBvbAedPtrNxUpKCvz1BDx/cMEnZc/yTlroclLYjUHVChSw 2bVgvg+sy4aA6YLw751RI7JBu55B0nXQ8NjhURbBiqHZB6L0QBxtvlaBNZ5bzOwGp4wi yj3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature :arc-authentication-results; bh=a2Me354+A3CYtCsUfddN7UPlERwPtA1t5ujPVX4pH3k=; b=WjM3dq7RcgC88lQ11y7n92solZv9FIfusozg/nkDQ3pJ7R3LOIJBBulLC40l80AbSo jO3kYOf8UndVMFJkVEZHYZ9OsnnhmQBiFq40zBLQya3/y8wTwwqNaRiR5TsPYiVhl4SC QCFnIWaHiEYIKlDhkZhhk3LprPHc0qctOPUhDBLB/4Uuo6ecyreJexfw/yD3JH3sfMFQ ++dnW9IlWuvono/B8Riry+niOiUrkMrsuGvludsZ3w+A0OUwCXpJF8AvXS5R8coDRY6x flY18hVgjzD/sKxC1FqR9NESKakfr2Zrk9577Ktwy//nErtfvK5fjumxRRgEYm7njp1h ui3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=zxtf6cAE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e127si422509pfc.315.2018.03.19.12.39.38; Mon, 19 Mar 2018 12:39:52 -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=pass (test mode) header.i=@telus.net header.s=neo header.b=zxtf6cAE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030529AbeCSTiJ (ORCPT + 99 others); Mon, 19 Mar 2018 15:38:09 -0400 Received: from cmta19.telus.net ([209.171.16.92]:47366 "EHLO cmta19.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031192AbeCSSWD (ORCPT ); Mon, 19 Mar 2018 14:22:03 -0400 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id xzPye0zTT1TXCxzPzeeNzD; Mon, 19 Mar 2018 12:22:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1521483722; bh=a2Me354+A3CYtCsUfddN7UPlERwPtA1t5ujPVX4pH3k=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=zxtf6cAEHLrL69anJnl3Ojagfr2G+IPq3Y7V8vyIwKoPt/+XU4Ft2OoXvw7Qyl0+q qZESO7HYbNmCSVWSQgVDWcvRl4vWKS2aCuluiXd1Yb3BcCL+aTAAneOYwx8JrQxDjF Ve92ZRjc3bD0+LjEcb7Bb4NIAVx0nf4kNENNWZHrajo5qOxocE7tGn34ytj5Iy7vgZ ppFUvNK5csqp+g29IS9ufb76rircAOAOk/HoxZWlBI/8sZUGniyVHUGqGhuylHzzkj Q2f6Q4TQDo+62DRNORNNhbj4kj6EpgZ3jD/r6EA50MyA1Qp5bNeSF742gaEwOyQhzq YJ8wCD2cYC4Qg== X-Authority-Analysis: v=2.2 cv=TI+qcxta c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=IkcTkHD0fZMA:10 a=QyXUC8HyAAAA:8 a=gu6fZOg2AAAA:8 a=DZUM9XUHyLTfwFUYx18A:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=2RSlZUUhi9gRBrsHwhhZ:22 From: "Doug Smythies" To: "'Thomas Ilsche'" Cc: "'Rafael J. Wysocki'" , "'Thomas Gleixner'" , "'Paul McKenney'" , "'Rik van Riel'" , "'Peter Zijlstra'" , "'Aubrey Li'" , "'Mike Galbraith'" , "'Frederic Weisbecker'" , "'LKML'" , "Doug Smythies" , "'Linux PM'" References: <2142751.3U6XgWyF8u@aspire.rjw.lan> <2148754.TY7qXgFyZy@aspire.rjw.lan> xuDHe5JrTQdbpxuDMeg0da In-Reply-To: xuDHe5JrTQdbpxuDMeg0da Subject: RE: [RFT][PATCH v5 7/7] cpuidle: menu: Avoid selecting shallow states with stopped tick Date: Mon, 19 Mar 2018 11:21:58 -0700 Message-ID: <003301d3bfaf$2d5e4090$881ac1b0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-ca Thread-Index: AdO/gJrvyo9eKq4lRGmNVPItTw3wKgAFzGIQ X-CMAE-Envelope: MS4wfE+XYkzwpE8phWkAe5WjCFWSsLFv+jm7xVDaNdLzekJb4WZk96umZAPsfnABsOmFaEgNE3Jc87RE/0UPWarPgEd290AyIvN7qeYbOuohCmgjbAz4uO7w w/6sdsZSjjq8gTOjow1pvohUWasOdFpGoAnSch3QVjtEOg8TPgtbnnzQOYyYeJDPCIM0ua33jriFL5HqZ1HiYwNl3NfVG/JrIFjSDYoU9iiE55XJTE/Nf4Oi gK3oB2WIOanfldm84cj/Ps+bxkIZGhnYTdc2VFqeg8jRFU7PgG+7CLOvmaf16Mx6slRaLu8LjtV5wZ73Ouu+nqLe1zI0W2BIvGEVKjzSPuyVXUq1zc3vNimr AMsufpETUerIPclYUaHyTp4lVSZEuLi5fz/3chwguJHYRz6OzHsQSEOVQa523+Dy7baji3zpJFg36D5WfbTf3r1uiKwUhPNfyKF59FH1ut+xPT9UmEn0iu4V ASagfM6mwsBGMYhu3xgh/E4ULRW6+NvmHRodIv5MDVseQ3iuyST2ooBsiK0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018.03.19 05:47 Thomas Ilsche wrote: > On 2018-03-15 23:19, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> If the scheduler tick has been stopped already and the governor >> selects a shallow idle state, the CPU can spend a long time in that >> state if the selection is based on an inaccurate prediction of idle >> time. That effect turns out to be noticeable, so it needs to be >> mitigated. > > What are some common causes for that situation? > How could I trigger this for testing? It appeared quite readily with my simple 100% load on one CPU test. Back then (V3) there only 6 patches in the set, and before the re-spin there ended up being a patch 7 of 6, which made a significant difference in both package power and the histograms of times in each idle state. Reference: https://marc.info/?l=linux-pm&m=152075419526696&w=2 ... Doug