Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp197289imu; Thu, 8 Nov 2018 00:00:42 -0800 (PST) X-Google-Smtp-Source: AJdET5fQwdxWD88dS0RJ0zQ8/51DfAUEr3Gfz40zAmdILgPS1KIRrm8dS8q/nzcNStv90DOMLVYY X-Received: by 2002:a62:fc52:: with SMTP id e79-v6mr3502432pfh.167.1541664042591; Thu, 08 Nov 2018 00:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541664042; cv=none; d=google.com; s=arc-20160816; b=k1b926mKdsxidfJm4u5qNvXlQy1v1h2pFDUh4dzNGm5/ju40vxqbQqjjARA9FgreLH offU7mBzxt/G+AQ9utv8F5b+iI0Zoiy1b7FUo7nYris8VlC7zdw5I5YU/sRPGkO8vVP3 AYdECK2qyMYNpqR2kX53iUvaQpawzkIBZB/23M6HvLv08LXjycBG4FtSfaG2AsJMN+2b QqV7QvZiW8RUStXrYRiMUCAhQQQEZl/DZ7rnDkZFgjaZA2vwLMbwoZgAachJkH5Z/rSX ULhSF4cb12dF+wXpyrkOwEQheQBWVG9Ken5nIHropiTbLlSnH5/0yHZKObPG1uZf6CDD RXEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8KdIo0ndPsxyGDwCEGb4fGBp1Qeg5P/a47GcaKbnjjk=; b=YeGhnbsY1A0oAEvIm9WoytaBzmvbfvDcmQdov3qCSj8tsH0dgirt3E0qEq6nUX8KrB Ks3CWyy3tcxhAYLIuDq7BlC6wQGXF81TsLzzGu6aNMKlwVsc8iT/1IWd64MGRJEAmyjf zhIgICIBmv/Xmv9vvc1XV0KRGRCHgOli2PzB6mic1BK5v0Dqu8V+J7lIjz5K5r8QBGy5 AoOZOVdwqjRWrmFuwmNmG9u86aL3P//34m7ezhD/EpXkDQm8++eBJ+6KsR1euCr4mTG1 6rTYLHoKQJy4l4KD+62oFQpzZltbt2FU1/T6zrP7aOne1kIFvADl/okCUgbQBLQ2wPHh 1LRQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si3100022pgg.527.2018.11.08.00.00.12; Thu, 08 Nov 2018 00:00:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbeKHReB (ORCPT + 99 others); Thu, 8 Nov 2018 12:34:01 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:45403 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbeKHReB (ORCPT ); Thu, 8 Nov 2018 12:34:01 -0500 Received: from 79.184.254.59.ipv4.supernova.orange.pl (79.184.254.59) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.148) id db0792ec4fd0015b; Thu, 8 Nov 2018 08:59:43 +0100 From: "Rafael J. Wysocki" To: Doug Smythies Cc: 'Giovanni Gherdovich' , 'Srinivas Pandruvada' , 'Peter Zijlstra' , 'LKML' , 'Frederic Weisbecker' , 'Mel Gorman' , 'Daniel Lezcano' , 'Linux PM' Subject: Re: [RFC/RFT][PATCH v3] cpuidle: New timer events oriented governor for tickless systems Date: Thu, 08 Nov 2018 09:00:00 +0100 Message-ID: <2005055.MdD5a3VSRr@aspire.rjw.lan> In-Reply-To: <000001d476bb$ec964520$c5c2cf60$@net> References: <000001d476bb$ec964520$c5c2cf60$@net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, November 7, 2018 6:04:12 PM CET Doug Smythies wrote: > On 2018.11.04 08:31 Rafael J. Wysocki wrote: > > > v2 -> v3: > > * Simplify the pattern detection code and make it return a value > > lower than the time to the closest timer if the majority of recent > > idle intervals are below it regardless of their variance (that should > > cause it to be slightly more aggressive). > > * Do not count wakeups from state 0 due to the time limit in poll_idle() > > as non-timer. > > > > Note: I will be mostly offline tomorrow, so this goes slightly early. > > I have tested it only very lightly, but it is not so much different from > > the previous one. > > > > It requires the same additional patches to apply as the previous one too. > > Even though this v3 has now been superseded by v4, I completed some test > work in progress for v3 anyhow. That's useful anyway, thanks for doing that! > The main reason to complete the work, and write up, was because, and for my > own interest as much as anything, I wanted to specifically test for the > influence of running trace on the system under test. > Reference: https://marc.info/?l=linux-kernel&m=154145580925439&w=2 > > The Phoronix dbench test was run under the option to run all > the tests, instead of just one number of clients. This was done > with a reference/baseline kernel of 4.20-rc1, and also with this > TEO version 3 patch. The tests were also repeated with trace > enabled for 5000 seconds. Idle information and processor > package power were sampled once per minute in all test runs. > > The results are: > http://fast.smythies.com/linux-pm/k420/k420-dbench-teo3.htm > http://fast.smythies.com/linux-pm/k420/histo_compare.htm Thanks a bunch for these! > Conclusion: trace has negligible effect, until the system gets > severely overloaded. > > There are some odd long idle durations with TEOv3 for idle > states 1, 2, and 3 that I'll watch for with v4 testing. That unfortunately is a result of bugs in the v4 (and v2 - v3 too). Namely, it doesn't take the cases when the tick has been stopped already into account correctly. IOW, all of the data points beyond the tick boundary should go into the "final" peak. I'll send a v5. > Other information: > Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz > The kernels were 1000 Hz. > Idle latency/residency info: > STATE: state0 DESC: CPUIDLE CORE POLL IDLE NAME: POLL LATENCY: 0 RESIDENCY: 0 > STATE: state1 DESC: MWAIT 0x00 NAME: C1 LATENCY: 2 RESIDENCY: 2 > STATE: state2 DESC: MWAIT 0x01 NAME: C1E LATENCY: 10 RESIDENCY: 20 > STATE: state3 DESC: MWAIT 0x10 NAME: C3 LATENCY: 80 RESIDENCY: 211 > STATE: state4 DESC: MWAIT 0x20 NAME: C6 LATENCY: 104 RESIDENCY: 345 Thanks, Rafael