Received: by 10.213.65.68 with SMTP id h4csp543696imn; Wed, 28 Mar 2018 08:18:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+9aCz8NQkePIMwbXz708+W2FXeRngy14mvRVWSMvOFYgLdrM9Mz3MyEPW4MGBnSo7mwvpF X-Received: by 10.98.220.218 with SMTP id c87mr3379140pfl.198.1522250316910; Wed, 28 Mar 2018 08:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522250316; cv=none; d=google.com; s=arc-20160816; b=GVJM4rO3rosDM0Xae1UcoYNXM+0+iQ7Ky48Wp2D5bYyfjjcrzUHwfBVMrWpk/b0uJb ZmGHN7+G38xIjK+AiQN1GODTwDhcut9iwcyz0gEf7WtSImeJNEkY3WCXIizLUTvJu7SD gXB326GiPb/YoZKiqm0pgyYbsZtxq+WPlax0aQHwur4ONb6PLhsnwp4uZYcJLFwSq0Qu KMO6nCIx0PwZ+Iur7pT/YuM6yhCP3Tgq7LmeaRnZThA45+z0KbaG3AixTRFvdMEVCDc9 iWqTlAZEly6bQjq5AjfAHpIXg0gTgMca1okkdGJCuFgUoWBq+iU/JkAexKx5is7oL0/z z08A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ea2cGAcXwnsFSnjahvWf2ZTNiFqfFEg3T9BMVxW4Vyw=; b=Y+C224b/TSG9qhyFScAmOdfMMW4QFDthPew/qTD9Ys6SQfQRulInK7yiPApnJoTOvs /5XPyCi2ytcvxtlY6Z7LYN3+IkGr/GOIeKrTRCk2HeEfz2MvtUzHidRmFQyiVeHBWX0k 8Tcg9isK5B17CvnLr3Si67faeeLIx7XVJiEdCs+ECjf25F6/tOmvI3PJnqXa2Kt+hMky LDxErBBQ+F/DdpNVL16t8VtfUNG0NB4TZwoXItcSoa7UbAb6576M5W6gY73j5CtsJQko N/3z0VFybOpAJNkYIj1rO53T4YlBv0Gj/i5r7b9/tVuT6l9NHWnAseOn56GleZu8zq+T sIdw== 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 k78si2907330pfb.272.2018.03.28.08.18.21; Wed, 28 Mar 2018 08:18:36 -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; 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 S1754070AbeC1PQU (ORCPT + 99 others); Wed, 28 Mar 2018 11:16:20 -0400 Received: from mailout6.zih.tu-dresden.de ([141.30.67.75]:41542 "EHLO mailout6.zih.tu-dresden.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbeC1PQS (ORCPT ); Wed, 28 Mar 2018 11:16:18 -0400 Received: from [172.26.34.104] (helo=msx.tu-dresden.de) by mailout6.zih.tu-dresden.de with esmtps (TLSv1.2:AES256-SHA:256) (Exim 4.84_2) (envelope-from ) id 1f1Co3-0007jv-5G; Wed, 28 Mar 2018 17:16:07 +0200 Received: from [141.30.69.3] (141.30.69.3) by MSX-L104.msx.ad.zih.tu-dresden.de (172.26.34.104) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Wed, 28 Mar 2018 17:15:11 +0200 Subject: Re: [RFT][PATCH v7 6/8] sched: idle: Select idle state before stopping the tick To: "Rafael J. Wysocki" CC: Peter Zijlstra , Linux PM , Frederic Weisbecker , "Thomas Gleixner" , Paul McKenney , Doug Smythies , Rik van Riel , "Aubrey Li" , Mike Galbraith , LKML 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: Thomas Ilsche Message-ID: Date: Wed, 28 Mar 2018 17:15:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms070709070308000805090704" X-ClientProxiedBy: MSX-L106.msx.ad.zih.tu-dresden.de (172.26.34.106) To MSX-L104.msx.ad.zih.tu-dresden.de (172.26.34.104) X-PMWin-Version: 4.0.3, Antivirus-Engine: 3.70.2, Antivirus-Data: 5.49 X-TUD-Virus-Scanned: mailout6.zih.tu-dresden.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --------------ms070709070308000805090704 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2018-03-28 12:56, Rafael J. Wysocki wrote: > 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: >>>> >=20 > [cut] >=20 >> >> 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. >=20 > And with a C program I see data->next_timer_us greater than TICK_USEC > while it is running, so let me dig deeper. >=20 I can confirm that a shell-loop behaves differently like you describe. Even if it's just a shell-loop calling "main{usleep(500);}" binary. --------------ms070709070308000805090704 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC EGIwggUSMIID+qADAgECAgkA4wvV+K8l2YEwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYT AkRFMSswKQYDVQQKDCJULVN5c3RlbXMgRW50ZXJwcmlzZSBTZXJ2aWNlcyBHbWJIMR8wHQYD VQQLDBZULVN5c3RlbXMgVHJ1c3QgQ2VudGVyMSUwIwYDVQQDDBxULVRlbGVTZWMgR2xvYmFs Um9vdCBDbGFzcyAyMB4XDTE2MDIyMjEzMzgyMloXDTMxMDIyMjIzNTk1OVowgZUxCzAJBgNV BAYTAkRFMUUwQwYDVQQKEzxWZXJlaW4genVyIEZvZXJkZXJ1bmcgZWluZXMgRGV1dHNjaGVu IEZvcnNjaHVuZ3NuZXR6ZXMgZS4gVi4xEDAOBgNVBAsTB0RGTi1QS0kxLTArBgNVBAMTJERG Ti1WZXJlaW4gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCASIwDQYJKoZIhvcNAQEBBQAD ggEPADCCAQoCggEBAMtg1/9moUHN0vqHl4pzq5lN6mc5WqFggEcVToyVsuXPztNXS43O+FZs FVV2B+pG/cgDRWM+cNSrVICxI5y+NyipCf8FXRgPxJiZN7Mg9mZ4F4fCnQ7MSjLnFp2uDo0p eQcAIFTcFV9Kltd4tjTTwXS1nem/wHdN6r1ZB+BaL2w8pQDcNb1lDY9/Mm3yWmpLYgHurDg0 WUU2SQXaeMpqbVvAgWsRzNI8qIv4cRrKO+KA3Ra0Z3qLNupOkSk9s1FcragMvp0049ENF4N1 xDkesJQLEvHVaY4l9Lg9K7/AjsMeO6W/VRCrKq4Xl14zzsjz9AkH4wKGMUZrAcUQDBHHWekC AwEAAaOCAXQwggFwMA4GA1UdDwEB/wQEAwIBBj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