Received: by 10.213.65.68 with SMTP id h4csp299786imn; Wed, 28 Mar 2018 03:58:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/n1x9QVYaV/kLHKVtuGiqukXquvVj5QAXvgg4VdlXgauSFQBSlcyIDwBXuFJu72OBW5pM/ X-Received: by 10.98.62.71 with SMTP id l68mr2559314pfa.98.1522234719364; Wed, 28 Mar 2018 03:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522234719; cv=none; d=google.com; s=arc-20160816; b=QuVq4TNHH4Au0ezPjPQYeUekvLaZ5kxms+kSPXlxeuuIvTvkRf5evqhTKn8gF5Okai GxOo07Qgw4SpUjItXlXw+szuc2PFUDeBnbIP7WBJ9H99TOzOWIboWjyN8hgeEHMtDcoj saFv+yR3Kt9W+ICA2ehAocvU/61bQqd9NXEt4CfxbyLd0qqcML3Uq9BubW/LKI2fa2tx yckBQAewKg1Y+ZigOX/tfpCkYS33gOE59UVK27/urcBquXX80sq354ycoSzmG+JyEIYO Gqz65fatzNh76DWNfFRc1cTfFq4ElK4Box1m5CI879gOrsWFxzfn3I5EPH84Yohy5Ce6 6I1w== 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=EMKtFxKn4ZHLOApPNLbBdvCEWeAa1FmbM0mLWuyxEFs=; b=SAEqS/ID+4Nq9weyZ3HVgXJuFR8HamVCloXzm4Zj/Kz62prpiGMZSIiekualHAJlcl PuGycU3EN8W1M0bH+9ngX3ezAflfhuGIkPRxWJVcIW6AaupRGssou+wdp1DzqLgmC+z3 pBCh0CotqMK0W21jDpEaJvEi4S7U7WQResi98JsXYDR4/4ldo09l/yxl0P3LVGKNZhkb LivS5e0ENUlVjkfVftV3huCrtYcYkBhXKlXGdp2tX53SWc221DJqWPYjOrLiQ4XYcZ7o WG7mqY9bNplHDRmnTY+iioUFdUZu3+CyEWCKKEbHANbDmglFYr3nWUagB+3k02rUKtYb qP/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=r4+d33de; 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 g1-v6si3236203plt.54.2018.03.28.03.58.25; Wed, 28 Mar 2018 03:58:39 -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=fail header.i=@gmail.com header.s=20161025 header.b=r4+d33de; 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 S1752315AbeC1K4p (ORCPT + 99 others); Wed, 28 Mar 2018 06:56:45 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33298 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbeC1K4n (ORCPT ); Wed, 28 Mar 2018 06:56:43 -0400 Received: by mail-oi0-f68.google.com with SMTP id 126-v6so1752440oig.0; Wed, 28 Mar 2018 03:56:43 -0700 (PDT) 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=EMKtFxKn4ZHLOApPNLbBdvCEWeAa1FmbM0mLWuyxEFs=; b=r4+d33deAsawTWy6fbujgzfyPkfemGzZAZkkCJ0SZWcJunvaOeNbyWXBb9R5Zoblyb yJOZ67ZIAuBFhVCyUYUpkAzqIXeQDLgMXs6DB1JnLl+Pz30tWAjVbg/7Grq7KtJgB3Rq Jb+cc/QxdprcqTTbS21+bwoNcxaGo7ktX5P7sodukp+ramglO7XAjrDuG8JW7g3hG7ND a2tDOErI9Dq3vp09wdOjKCCAM7763d/y9L/EGqwY3kXWVD8CvfGpLnwH5F+kbu22qKrG 54zCg61wyelCi5UM9oSCvRbsQh/SPYnhVBM0OdILHqpbVn+uEab71e6UJ4ce0V2uTw/0 lp5g== 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=EMKtFxKn4ZHLOApPNLbBdvCEWeAa1FmbM0mLWuyxEFs=; b=ATrhYQf0AmKGyqViHfMMAeciDpQngaVA6iPYTZjG0uVjetjsrxIjPkRxB1Fld6ZStj qxKWVwmvP6uHlRn9nJ444HvWt7AO+v2eVKGyA+JwVUx9xkWTNKtm4paW/E98JzX1wi1U r97n1emjquBtHvs8lzHiojXSLYHZprf5ijAN76ziv6DanPiAzMY55D9PXcW+M/M7PV7S nW/5iwVUDTIxZyxfO02Cocz5X8yZ49fdWvUi9Cgiim0EHggrOPqfFOKJkI4/82+nRXVB opqeRPq2Nrm1gQOBCJEIfVQjmXRjapmxsD/rOh6GlMHwoLMK5dba87+8P7nf1kcwdqm5 mK4w== X-Gm-Message-State: ALQs6tBc68MkU5SYnJmF/ZE/ftiU0uUlKmZo8rdHRKKBBiZBcyX7w7JL X2zZH9SJSNHz8FBjuGAbUUr7iM2jRiOHdARH4Ds= X-Received: by 10.202.224.132 with SMTP id x126mr1618672oig.120.1522234602740; Wed, 28 Mar 2018 03:56:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Wed, 28 Mar 2018 03:56:42 -0700 (PDT) In-Reply-To: References: <2390019.oHdSGtR3EE@aspire.rjw.lan> <2249320.0Z4q8AXauv@aspire.rjw.lan> <6462e44a-e207-6b97-22bf-ad4aed69afc2@tu-dresden.de> <4198010.6ArFqS34NK@aspire.rjw.lan> From: "Rafael J. Wysocki" Date: Wed, 28 Mar 2018 12:56:42 +0200 X-Google-Sender-Auth: E4dtRLTrDWr1jlLEFyWtHz_v7tw Message-ID: Subject: Re: [RFT][PATCH v7 6/8] sched: idle: Select idle state before stopping the tick To: "Rafael J. Wysocki" Cc: Thomas Ilsche , Peter Zijlstra , Linux PM , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , 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 Wed, Mar 28, 2018 at 12:37 PM, Rafael J. Wysocki wrote: > On Wed, Mar 28, 2018 at 10:38 AM, Thomas Ilsche > wrote: >> On 2018-03-28 10:13, Rafael J. Wysocki wrote: >>> [cut] > > So I do > > $ for cpu in 0 1 2 3; do taskset -c $cpu sh -c 'while true; do usleep > 500; done' & done > > which is a shell kind of imitation of the above and I cannot see this > issue at all. > > I count the number of times data->next_timer_us in menu_select() is > greater than TICK_USEC and while this "workload" is running, that > number is exactly 0. > > I'll try with a C program still. And with a C program I see data->next_timer_us greater than TICK_USEC while it is running, so let me dig deeper.