Received: by 10.223.185.111 with SMTP id b44csp112508wrg; Fri, 9 Mar 2018 02:00:03 -0800 (PST) X-Google-Smtp-Source: AG47ELv0x5ypEAx/xKfITovqCxBh7ZDITdJrfDeS5FTgzCYfkE/P4jKgIDSLsW9+c50H63YdZ0y6 X-Received: by 10.167.131.135 with SMTP id u7mr22913867pfm.50.1520589603423; Fri, 09 Mar 2018 02:00:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520589603; cv=none; d=google.com; s=arc-20160816; b=RuS9md/12h2eRa7X+hK3n57SXeUQQIfQZ5ytk9Ml95KO8iyteGzC9uLL3GlCtuAFFq qvuv4cfn72enIoLutf1Xg7xyM3UypYEpnWdNyqau5H9VpOirWS6uRtLwdj9yp3LFmt3o X4UxY7t3hUL2nUhfcnNy0z3txRYZotsum05Ve/rt46NHn4hPHTDGli3NKyLCYXazZOQU JYGuwNt6RR71WoZkStNxq+31k9DZy8IbXOj+NQyeiZpP1r227uy5vq/iNgzoLrFKlBx8 CyfWfpAn+OXtz8dOQeNAAvt7yF0mn+Lt6u1lp0KQV9QxxKou2uWFsxm9s8ZopRyKDRBx B+WA== 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=01Z0zRGs0z9lQOxLVz5+XGUdJyQk2maLhRB9rN63bOw=; b=vkJlCHiSvOvMY503Oj+JWGVdlYPcJoFxM+VN/5CqgSvvjYNOWq7UpjYOUaFGs4Veuu Dcc+x5GxssmqHOTVj4+L9WbgKCWtaxhvwMWcopXgvVOd5Vnmt/eQG5GJlw2IPMmUDE0A 7epU3X5k3kj3343vqDJAgZsZ6WwCr7L4rwjXjDD2SI+/S+X1a76SGoWnFPxxwLIdqVmw 3Wi44VvY5OLDU89BGbOx98Maw5Yj7itWGL9wJLEcmdQdrfcoyY3zL9P2WLHGykTFDkpa uHynFvst/jLFLskMehoCXOKbxvKx1ayGIPouEmh58UwPphxBlA4xHPcfMd/TLkoF4DY3 0bMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fHttKJWL; 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 131si585826pfa.109.2018.03.09.01.59.48; Fri, 09 Mar 2018 02:00:03 -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=fHttKJWL; 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 S1751005AbeCIJ67 (ORCPT + 99 others); Fri, 9 Mar 2018 04:58:59 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:38013 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeCIJ65 (ORCPT ); Fri, 9 Mar 2018 04:58:57 -0500 Received: by mail-ot0-f195.google.com with SMTP id 95so8187649ote.5; Fri, 09 Mar 2018 01:58:57 -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=01Z0zRGs0z9lQOxLVz5+XGUdJyQk2maLhRB9rN63bOw=; b=fHttKJWLJSM6le3Rl54h3WQL9b2eePsgtfsQsN/njXtuOoAFsZs3Yi2PRcZuuuypM8 7O5q9XiN2FunLZvpvI/Tj2+OO6znMNIAYbpLNUvh0SxKduKVS5hoWFoBZ6AbOppJZA6n LzpgRBT9oA3OiVJ5OYC4ioRzULQxQtDWthkQ3iDRRw/dy9H7AWo5f4nRkhBoqh6xNjSu ZqcAYv+J1STFxiLYMEiTCPWyQQhWWOCMVx+tmEo9E+y0Y69BH/8dEgbSDEaipKYd6LjD 5RY9Gz3sfQTyptTcgjCsjUqRI9XNJ+RKF/2iEXd022xb0FSHVrqLHsIGMWyYveduXPbg uNXA== 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=01Z0zRGs0z9lQOxLVz5+XGUdJyQk2maLhRB9rN63bOw=; b=Eh0MvjlBGAmgJOahQrAxGm/9Ie8cj5+s43HwWxQV9tNJqUb7fBrCXwql4vl4tyAmM6 +lfrClCX/uYm54+t3ZRSk/Jks6hpV7u4fm0iX0UOUDSLqexy4CnYR6zyYWWBzXOWk9m6 APp2HdlNdBHboaiXG0E9aT6ZyD7g5zQFyuKDwb1ujLbtld7KqjU8GEKxvjyX9KEGRzk0 fPx8xxXHSTpPEC6DpmhiuHdEKiAoW1G4hs2mlznXsQfJ34eGYAY0G2hpKz7Caae+rUAq OPPunfmb7bdPngA3DDaYxz8R5g53o9ypp8SrW32B6YoDVpDmiYXuRMAEibUZQkoDLlhh ossg== X-Gm-Message-State: AElRT7HOeE+UFR0rYQnczwaYm00g8B3ZNfmBJfUXJN39bxXyIcHb4/62 M71atpro30tFrMRbxCLkZOxwohqdl/zpncCCyyk= X-Received: by 10.157.63.5 with SMTP id m5mr19667797otc.150.1520589537291; Fri, 09 Mar 2018 01:58:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.44.146 with HTTP; Fri, 9 Mar 2018 01:58:56 -0800 (PST) In-Reply-To: <1520516417.7807.88.camel@suse.de> References: <2067762.1uWBf5RSRc@aspire.rjw.lan> <1520505099.7807.60.camel@suse.de> <1520516417.7807.88.camel@suse.de> From: "Rafael J. Wysocki" Date: Fri, 9 Mar 2018 10:58:56 +0100 X-Google-Sender-Auth: FwWylSguX61OkxUHcb_fQ4Eirvw Message-ID: Subject: Re: [RFC/RFT][PATCH v2 0/6] sched/cpuidle: Idle loop rework To: Mike Galbraith Cc: "Rafael J. Wysocki" , "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 2:40 PM, Mike Galbraith wrote: > On Thu, 2018-03-08 at 12:10 +0100, Rafael J. Wysocki wrote: >> On Thu, Mar 8, 2018 at 11:31 AM, Mike Galbraith wrote: >> 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). > > Hm, I'd expect that to show up in +local as well then, as it keeps the > tick running when avg_idle < sched_migration_cost (convenient magic > number), but the firefox load runs at the same wattage as virgin. I'm > also doing this... > > --- a/drivers/cpuidle/governors/menu.c > +++ b/drivers/cpuidle/governors/menu.c > @@ -335,7 +335,7 @@ static int menu_select(struct cpuidle_dr > * C1's exit latency exceeds the user configured limit. > */ > polling_threshold = max_t(unsigned int, 20, s->target_residency); > - if (data->next_timer_us > polling_threshold && > + if (expected_interval > polling_threshold && > latency_req > s->exit_latency && !s->disabled && > !dev->states_usage[1].disable) > first_idx = 1; > > ...to help out high frequency cross core throughput, but the firefox > load apparently doesn't tickle that, as significant polling would > surely show in the wattage. OK, so the second reason sounds more likely to me. Anyway, please retest with the v3 I've just posted. The previous iteration had a rather serious issue that might very well influence the results (it was using stale values sometimes).