Received: by 10.223.185.116 with SMTP id b49csp6179293wrg; Thu, 8 Mar 2018 03:13:21 -0800 (PST) X-Google-Smtp-Source: AG47ELtdtcdw2Dqx/KMmwcY00QPg+Ov1pvt7B9A9VE+9rYOmCMiZdwDW62ynh+Pe/WDc5j4Hw7Ra X-Received: by 10.98.82.144 with SMTP id g138mr25611387pfb.239.1520507601244; Thu, 08 Mar 2018 03:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520507601; cv=none; d=google.com; s=arc-20160816; b=T3p7L7AccJaa/Il9ZrAeJ29TPn9m8/3Tk169kAcSyQ39EseMWN8qyiaTGeEeCXnV6L iKEVxaqqcEOh9EbD92IhG0HS6/YksONz1pNA1fZ5O2AAIm6A3ErmqIZi/TkQbvZDBX5v loqTf6krMwaN5NDc6U8I10QZhOxq4VzbeAKaa++Qh9TOS/Z6FnXSZvNArlz7y4Xe6813 UmB29FQBRmEaK9GYWlRC+Oe2W/tgfP+mSkFGSNfp51kzzHabUGoP3GB3g0glAyBKHiBK jH4eqr5Q0pU1T+qbN7GvRUCzaUXtDpD4Ql2Uz4gO5/VPDYGjvkylNXPZLug4k5BVHSnW JmoA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=c1m2WoDn3RJLxpMyC7EKWg+T8vzw63+sa4SEr06oaGs=; b=Hv4EAfQG8bIMcC2It5ePRhMO8lzfPmw75F3XBZ4BwCS4QLEMWvfwHrI4oOEd9i1hf9 T4PYO3m3XSmTI0pzqIbF35JdJTvJl6YFE68ZEEwLk3U0wOBGxmo3KGj3C9T2I6nzmNyQ /i8VW6YJDSXl7qBhVovUJrXUFgpi0dgrEfjzYQrz2n1tQDlMWAjn6QyIVEpemHdG4bD/ alVQJ8vhCRroLfgLw2BAnNWijtalJW0dlBFUIWB1KVSCImEubreD3LJcWoFRQQlz2T0h qU+iJC0TpXymtexC5KQlMxN1SYEOifwbEbyix3FJIxxvnGyLSnS+XpRAuzTBricBbum4 vdCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e49rnO7V; 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 c12-v6si14512045plo.278.2018.03.08.03.13.07; Thu, 08 Mar 2018 03:13:21 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e49rnO7V; 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 S1755826AbeCHLKW (ORCPT + 99 others); Thu, 8 Mar 2018 06:10:22 -0500 Received: from mail-oi0-f45.google.com ([209.85.218.45]:45930 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754566AbeCHLKQ (ORCPT ); Thu, 8 Mar 2018 06:10:16 -0500 Received: by mail-oi0-f45.google.com with SMTP id j79so4054591oib.12; Thu, 08 Mar 2018 03:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=c1m2WoDn3RJLxpMyC7EKWg+T8vzw63+sa4SEr06oaGs=; b=e49rnO7VNRh3VnoKA7goxMwj1ILE19lY4bBiAQ0RW24ZPJNEvJ4ExTJnnH8lzFuW7D wrQ8imc39/g2OxPJUjNnKJesRcyaPyXBaMdBpR5wEV+FooCADjagLe2AWfT++UARnoeY k+XDenLr8fe1Mqm+BIGpfHzub6NQfENy/dyB1wAoNyr7XFzqUfQFj+LITvRpapaAavex MsDru3RYF5S2JcrjSiUvbqTZIjW3O/faiWXoRTJ44y66e9QvtY5168ipQpIhlGY77QYv XV7IQRw9cGjyLemsm4kpQNBv0d8DQOSVzuDCpqFGlzqkBLPySg/lFIMplMhUEh8KqZUG 6npw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=c1m2WoDn3RJLxpMyC7EKWg+T8vzw63+sa4SEr06oaGs=; b=mhq+6kNOBSH8eVpUbOjTQHUczdwHge8VEByC/gqoNleAFzmC05TpF6f06IaH6N5cja h3fKpy7ScbRJGvNiU7BKqm2CJQ6tYiFCK/lTCNIXnRAX/mAfBYizyYUXy9nJt8BLbFr6 mplrpHnVsA7xK0Zp/yr7m0eDEC5+EHAN9LsMFY5jMj5hQQiWKPDiXW8LVIUax9yeK72/ 7aVPR6RSHqRwlTcKvg145ZX9PYo+iY0VZ10bQRq+//9Dt4O5UkMoNcoED/k4WQlejBS4 Wi6MAW/SE7/EapqTs5001WYz3xWOoAW0DdiSy819d+nFX6m3U5ipE65I3hWS/FgO+uas 8n+Q== X-Gm-Message-State: APf1xPASRcQCz6wMFFi/+tKxzf0v84Fj0rVzVRJSvzgetDJDUBxRBP58 NSvUgpBgh00cO1jhDInmqDw8BQO9dXwRUaStQlQ= X-Received: by 10.202.108.73 with SMTP id h70mr15520224oic.282.1520507415875; Thu, 08 Mar 2018 03:10:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.44.146 with HTTP; Thu, 8 Mar 2018 03:10:15 -0800 (PST) In-Reply-To: <1520505099.7807.60.camel@suse.de> References: <2067762.1uWBf5RSRc@aspire.rjw.lan> <1520505099.7807.60.camel@suse.de> From: "Rafael J. Wysocki" Date: Thu, 8 Mar 2018 12:10:15 +0100 X-Google-Sender-Auth: k0--1JqrGSTNdZUmwEXnvonCZbM Message-ID: Subject: Re: [RFC/RFT][PATCH v2 0/6] sched/cpuidle: Idle loop rework To: Mike Galbraith Cc: "Rafael J. Wysocki" , Peter Zijlstra , Linux PM , Thomas Gleixner , Frederic Weisbecker , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , LKML 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 Thu, Mar 8, 2018 at 11:31 AM, Mike Galbraith wrote: > On Tue, 2018-03-06 at 09:57 +0100, Rafael J. Wysocki wrote: >> Hi All, > > Greetings, Hi, >> Thanks a lot for the discussion so far! >> >> Here's a new version of the series addressing some comments from the >> discussion and (most importantly) replacing patches 4 and 5 with another >> (simpler) patch. > > Oddity: these patches seemingly manage to cost a bit of power when > lightly loaded. (but didn't cut cross core nohz cost much.. darn) > > i4790 booted nopti nospectre_v2 > > 30 sec tbench > 4.16.0.g1b88acc-master (virgin) > Throughput 559.279 MB/sec 1 clients 1 procs max_latency=0.046 ms > Throughput 997.119 MB/sec 2 clients 2 procs max_latency=0.246 ms > Throughput 1693.04 MB/sec 4 clients 4 procs max_latency=4.309 ms > Throughput 3597.2 MB/sec 8 clients 8 procs max_latency=6.760 ms > Throughput 3474.55 MB/sec 16 clients 16 procs max_latency=6.743 ms > > 4.16.0.g1b88acc-master (+v2) > Throughput 588.929 MB/sec 1 clients 1 procs max_latency=0.291 ms > Throughput 1080.93 MB/sec 2 clients 2 procs max_latency=0.639 ms > Throughput 1826.3 MB/sec 4 clients 4 procs max_latency=0.647 ms > Throughput 3561.01 MB/sec 8 clients 8 procs max_latency=1.279 ms > Throughput 3382.98 MB/sec 16 clients 16 procs max_latency=4.817 ms max_latency is much lower here for >2 clients/procs, but at the same time it is much higher for <=2 clients/procs (which then may be related to the somewhat higher throughput). Interesting. > 4.16.0.g1b88acc-master (+local nohz mitigation etc for reference [1]) > Throughput 722.559 MB/sec 1 clients 1 procs max_latency=0.087 ms > Throughput 1208.59 MB/sec 2 clients 2 procs max_latency=0.289 ms > Throughput 2071.94 MB/sec 4 clients 4 procs max_latency=0.654 ms > Throughput 3784.91 MB/sec 8 clients 8 procs max_latency=0.974 ms > Throughput 3644.4 MB/sec 16 clients 16 procs max_latency=5.620 ms > > turbostat -q -- firefox /root/tmp/video/BigBuckBunny-DivXPlusHD.mkv & sleep 300;killall firefox > > PkgWatt > 1 2 3 > 4.16.0.g1b88acc-master 6.95 7.03 6.91 (virgin) > 4.16.0.g1b88acc-master 7.20 7.25 7.26 (+v2) > 4.16.0.g1b88acc-master 6.90 7.06 6.95 (+local) > > Why would v2 charge the light firefox load a small but consistent fee? Two effects may come into play here I think. One is that allowing the tick to run biases the menu governor's predictions towards the lower end, so we may use shallow states more as a result then (Peter was talking about that). The second one may be that intermediate states are used quite a bit "by nature" in this workload (that should be quite straightforward to verify) and stopping the tick for them saves some energy on idle entry/exit. Thanks!