Received: by 10.223.164.202 with SMTP id h10csp88119wrb; Wed, 29 Nov 2017 17:38:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMbH9KE16pDFnOn4Kio9ZDUOCjcm1OiKvq9MTGc2KIXSaMPw5K5kreKPSKAlmwQh1vLlQym7 X-Received: by 10.84.198.1 with SMTP id o1mr839277pld.396.1512005902205; Wed, 29 Nov 2017 17:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512005902; cv=none; d=google.com; s=arc-20160816; b=JkNsvVSoAaIsTDJJUu1fCzNAKTXxmzKnEAf32Dl9JdBUuQCWvs6QgyunE2EkzOz1LA U4h3JG9BF4sWrkigSgIWklXAQxvYepQjhAkIhJH7aMvvGI3ucspehkpQskEVuQLJAhZa 7ULbIFcF0YW7iEU/AL3N7B8X3Zr/c97i3Li8Q/Eo1vM919loloBXU2uvdlTNPeP3eOjO 41aNv3L6J72nvQ+5Su8WeoRLHw2u3mqZjh5v0pw7KF7Z2NjKnOtwHZUGMF84OeUxNJ8F /3tL0WD61/KTTubqfmr2EGPv/JcPcc0S0QbH8v4kRzb6xGiD4gWbY/rzjxJFvq6agpnN ywsA== 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=+/RDou3TyQD2JHMTQSwsSckTWX0a1+ocnXZAbCSBXzM=; b=KcjiZKZJWI5rReKRitP2P02di3dEr8ypuF+9+9VG+RW7lzIPRINiE52yfiDAcmyf4c SrPm7Isr3OBN6Vt2DpBGe9ahOI9vA5kiKW2qvmoQdMgwJtNowo0Ej16JsjkERW1eyJfL ElexwqEz8/1fvb12SyjJtNoTAJGp8KsO1ILEuIn+VdCGvWUH0VmfNmMH/OfKV6TA8kCT plI642+MtQRo9eygd2eS8dCAdUF7m4PBVYr24P0fw6Ft5UhFGm43MZBtdez7GVGIxePe Jqlzct3TmHgMLe0cu45EPlGdLss402rJLDsfTwJZaQJQDxiUWwXW6V4HubP7XD3/9kCG qJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=scA49eD2; 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 b5si2185177pgr.120.2017.11.29.17.38.08; Wed, 29 Nov 2017 17:38:22 -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=scA49eD2; 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 S1753458AbdK3Bhb (ORCPT + 99 others); Wed, 29 Nov 2017 20:37:31 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35002 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734AbdK3Bh3 (ORCPT ); Wed, 29 Nov 2017 20:37:29 -0500 Received: by mail-oi0-f68.google.com with SMTP id 184so3825917oii.2; Wed, 29 Nov 2017 17:37:29 -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=+/RDou3TyQD2JHMTQSwsSckTWX0a1+ocnXZAbCSBXzM=; b=scA49eD2p3pNnzHaRqMiG+PhyA7EMnfV4yDhViRYuMTApe94I3snnBiQVrOo27kclj 0pvzjzhhBT2S7F7xTo6Sm6/OvE8sBOUKSrlSws5iL7jghhMCDKlVGNCTQg5vKU6ESF8k qQTY1n/oXGHGMed2IihpLebLotRpSRGGtQJM6UhHWW6QKVAy1SkzUz4h8seSvDTtgw9y EItk9yr3wszHsFXqxBzCAFPgpfUCackx0VyMgM2UW+g2DclUK38PhzjX0acodDgi8pZB I/auMc0yTSZ/0YZ3NWzfc81BAh+Y83/R8TQ/t4hn0TUgOUguemfNQX5Z7hT6Rj/zYscm BSRg== 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=+/RDou3TyQD2JHMTQSwsSckTWX0a1+ocnXZAbCSBXzM=; b=d6Vpq7v3LfKKfeF5TcGUc34pJtsjVzIuZv8/Qas7Jxctx91Z+0a3/NEmioNmjW5MKb iZ331PHkfePumdEmEF8CqfcAfA5QXKxPvWQu7QFfuC/o8JOU0bNYd4+826pyByi+Oadd Uf/9pnNWF/5nanb3N6gfyGzoJ7weyX/d9oWTcqSqe3lnENfFS6xVomLqPmPLl4z0FdWI 2XvLvT+hKYn7gMzWbEn9Fm0AkkUFW/ZzOZF9NryD1HVA5t6Ccen3RRLuhdNQthX2Iqhc FjBuJihZ7EV6ryEsG8mddfOsMou7rX8yU6tzZCFE20sohMu96YOnmmhyVlhRV6o9Vlu3 QiIQ== X-Gm-Message-State: AJaThX6bUu/nq/km5nci9r6TS6YRoSkI9ClTUB8CXdm0yDWa/OH4x3eI gij59IdcJKyze8cdgslTgCNJKymdQ+bxOUNnkf4= X-Received: by 10.202.242.194 with SMTP id q185mr3571912oih.175.1512005848543; Wed, 29 Nov 2017 17:37:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.46.145 with HTTP; Wed, 29 Nov 2017 17:37:28 -0800 (PST) In-Reply-To: <0f4d78d4-09d7-5b68-8706-5427b39fa0ed@linux.intel.com> References: <1506756034-6340-1-git-send-email-aubrey.li@intel.com> <0f4d78d4-09d7-5b68-8706-5427b39fa0ed@linux.intel.com> From: "Rafael J. Wysocki" Date: Thu, 30 Nov 2017 02:37:28 +0100 X-Google-Sender-Auth: rPFKGZnaoKoK6bONdN5EgLFEsOs Message-ID: Subject: Re: [RFC PATCH v2 0/8] Introduct cpu idle prediction functionality To: "Li, Aubrey" Cc: Aubrey Li , Thomas Gleixner , Peter Zijlstra , "Rafael J. Wysocki" , Len Brown , Andi Kleen , Tim Chen , Linux PM , Linux Kernel Mailing List 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, Nov 30, 2017 at 2:00 AM, Li, Aubrey wrote: > Hi, > > Thanks Rafael's comments against V2. I'd like to ping here to see which > direction this proposal should go and what fundamental change this proposal > should make. > > I'm also open to any suggestions if my proposal is not on the right way. To me (and I discussed that with Peter briefly last month in Prague) the way to go would be to avoid stopping the scheduler tick until we are entirely sure that it should be stopped. Which is when the governor (any governor BTW, not just menu) chooses the target idle state for the CPU and the target residency of that state is long enough for the tick to be stopped ("long enough" here means that if the tick is not stopped, the time spent by the CPU in the target idle state will be shorter than the target residency). Note that this is totally independent on what governor is used and it doesn't involve any "refinements" or "improvements" of the prediction whatever. Of course, for the governor to make the state selection, it generally will have to know when the next non-tick timer is going to expire and getting that information to it will require some effort. Thanks, Rafael From 1585450782485188701@xxx Thu Nov 30 01:01:31 +0000 2017 X-GM-THRID: 1579948553110255952 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread