Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1413983imd; Sun, 4 Nov 2018 02:10:16 -0800 (PST) X-Google-Smtp-Source: AJdET5fmQl4bCX4Egx4ZgGC+cJM1C2oGjnScZsu1GdqKYY5mo98RyKsV5cT8k7Arc1t4Nlp7ezSv X-Received: by 2002:a63:484c:: with SMTP id x12mr16343806pgk.375.1541326216837; Sun, 04 Nov 2018 02:10:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541326216; cv=none; d=google.com; s=arc-20160816; b=KmgbtM16lAhw77Lmgu2MPcRUIkEQRTF5lDtskE497l3MROGbMa8Kf9aHXfmIoM6BRR n0+8bF/8UkonmRI0yYnxaPLUB3EmOrJJ+/e2z1ATDw79g9v7w18AAgkaL66/82v8o3T1 RVATxfees881zfFbrm7IcwRnSYkeUjMkgMwm4VqKnvoJz3Y9bXiZXxThO+3gybsRrEla +EYg9g9LpvVI6Efgze18kxXnFCgGlo5V130ocPNiwnC81l+HzBttvxkksYYKD7mc6L8s sn743eS/4/32NX/xOPvU1IPcudh8RKZfH7Ni/TiXacClrsdfVPo1oW/gXlDvN70NsF3p Jhcw== 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=JguFlzHc3uD8nJBWE3v8hvTchefhYMfeTd0kehgpLzg=; b=A29DtGGkjgVzFK50o8xtKLGArdM1ycJttyIgKQV1tMJka6UVC8u8YG0ASWhEWDtlli /4JUsKKleVw13SbkGTKmFxImOwXMd5d8CP26ukyHjgso8hezyiwBRQYoVtLAoVf4hu9W qhwn19P6WNYagTVNbJD/I2QmhRc/xBbsigqEQ6U6U34BkhWoIUKvtjqbakLMm+XGymA3 zXM6PczxmUC96F/+4zLAQnzXpJS4LZWcnIhsTth9HebgHw5Gw+AEnZyMLVoulfozPVS4 +loBTOiApIkt53U5kWLW/zz6D6CqsnLTMKlvSNTSKikuW2KNG+Jx17++/boj4L/ff3Nt vf7A== 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 y19-v6si426314pll.117.2018.11.04.02.10.02; Sun, 04 Nov 2018 02:10:16 -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 S1729277AbeKDTUY (ORCPT + 99 others); Sun, 4 Nov 2018 14:20:24 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:58787 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbeKDTUY (ORCPT ); Sun, 4 Nov 2018 14:20:24 -0500 Received: from 95-161-222-119.obit.ru (95.161.222.119) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.148) id 04e7387ad7ca2874; Sun, 4 Nov 2018 11:05:58 +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 v2] cpuidle: New timer events oriented governor for tickless systems Date: Sun, 04 Nov 2018 11:06:17 +0100 Message-ID: <5001963.Ahc0lEbC1L@aspire.rjw.lan> In-Reply-To: <000301d472c2$49f28740$ddd795c0$@net> References: <000301d472c2$49f28740$ddd795c0$@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 Friday, November 2, 2018 4:39:42 PM CET Doug Smythies wrote: > On 2018.10.26 02:12 Rafael J. Wysocki wrote: > > ...[snip]... Again, thanks a lot for the feedback, it is appreciated very much! > > The v2 is a re-write of major parts of the original patch. > > > > The approach the same in general, but the details have changed significantly > > with respect to the previous version. In particular: > > * The decay of the idle state metrics is implemented differently. > > * There is a more "clever" pattern detection (sort of along the lines > > of what the menu does, but simplified quite a bit and trying to avoid > > including timer wakeups). > > * The "promotion" from the "polling" state is gone. > > * The "safety net" wakeups are treated as the CPU might have been idle > > until the closest timer. > > ...[snip]... > > I have been testing this V2 against a baseline that includes all > of the pending menu patches. My baseline kernel is somewhere > after 4.19, at 345671e. > > A side note: > Recall that with the menu patch set tests, I found that the baseline > reference performance for the pipe test on one core had changed > significantly (worse - Kernel 4.19-rc1). Well, now it has changed > significantly again (better, and even significantly better than it > was for 4.18). 4.18 ~4.8 uSec/loop; 4.19 ~5.2 uSec/loop; 4.19+ > (345671e) 4.2 uSec/loop. > > This V2 is pretty good. That's awesome! > All of the tests that I run gave similar > performance and power use between the baseline reference and V2. > I couldn't find any issues with the decay stuff, and I tried. > (sorry, I didn't do pretty graphs.) > > After reading Giovanni's reply the other day, I tried the > Phoronix dbench test: 12 clients resulted in similar performance, > But TEOv2 used a little less processor package power; 256 clients > had about -7% performance using TEOv2, but (my numbers are not > exact) also used less processor package power. Good to know, thank you! > On 2018.10.31 11:36 Giovanni Gherdovich wrote: > > > Something I'd like to do now is verify that "teo"'s predictions > > are better than "menu"'s; I'll probably use systemtap to make > > some histograms of idle times versus what idle state was chosen > > -- that'd be enough to compare the two. > > I don't know what a "systemtap" is, but I have (crude) tools to > post process trace data into histograms data. I did 5 minute > traces during the 12 client Phoronix dbench test and plotted > the results, [1]. Sometimes, to the right of the autoscaled > graph is another with fixed scaling. Better grouping of idle > durations with TEOv2 are clearly visible. > > ... Doug > > [1] http://fast.smythies.com/linux-pm/k419p/histo_compare.htm Thanks for the graphs. At least they show the consistent underestimation of the idle duration in menu if I'm not mistaken. Cheers, Rafael