Received: by 10.223.164.221 with SMTP id h29csp594881wrb; Fri, 3 Nov 2017 22:46:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RTu+lYIAnbJZbvjDZ/ppDDl5A86sfwrMIjVW2FVHvd1UPpF9YT0+r5z8/nqm/q4mbn2hND X-Received: by 10.84.235.69 with SMTP id g5mr9123448plt.239.1509774412642; Fri, 03 Nov 2017 22:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509774412; cv=none; d=google.com; s=arc-20160816; b=giPZUJ9yGHV8/1YARR4tj1mgCj5hBPk1+szfUytkExuN/81og/GBE+MoMb3U1D9KSy DRw9Z/yBPJ6iD8zD2d0eZtHaUAKUDERPj2y4FkBPzZB+utPmgmU6Dg91oS5AAHbIzYoN Ij5tVw9BvDRa5ZqNeljzdnihvcNqwD1HgjD9c70gURaKYhZLZKS9drCzpRfi3njEdydi Jo94sNemn47XEM8tKmTBJFOyHgzhf8vg77ghAM7FtyeMVSjD3pWIb2b4mB1DZKjo5aXu u2OMFBu8c06gvJ1hnKsm8Obja6fZ4RldTbUn8kvYmswQ43j/uyJBKFsr29RdrWzWMfOT n99Q== 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=WAByG23uw4ZhLaTTk8eS4fsvuM5W1Lb1wvV4dyvNTmE=; b=hMJT0pTwt2B3spBvq4D5uhu28UjGJo0+yoYerS7wPEmRLSw3m9QHxV/R0iTOSfTXQK snzhylWM9Ww5EBabQwjYmujYg9Gf1ZN3JfoL2QYGrQ7n6vkP6AME0ILALXFV6AoaCDav wyiEmDI+uUo8evG52h3HIX0fo69K5HSiUXcFXzEIvtNwpPXRj/cuExtrL81Spd9MFhP7 yhmJfc7r6Z86KZLkUWI+MUm2NtLE2nxOoDjqIO4eTeyhdQNeOSwVh3ctwqhuKdW6OiN4 N/Um8hs7/DDMIFM9pCJpqx5QPdhjBRebEx9yMiTmT8jJeuQes3qsrAW6XRlx52FLBZd9 Rc6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FWIzZkra; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si6329326pls.397.2017.11.03.22.46.07; Fri, 03 Nov 2017 22:46:52 -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=pass header.i=@google.com header.s=20161025 header.b=FWIzZkra; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751453AbdKDFo2 (ORCPT + 93 others); Sat, 4 Nov 2017 01:44:28 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:51174 "EHLO mail-io0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdKDFo1 (ORCPT ); Sat, 4 Nov 2017 01:44:27 -0400 Received: by mail-io0-f180.google.com with SMTP id 97so10564836iok.7 for ; Fri, 03 Nov 2017 22:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WAByG23uw4ZhLaTTk8eS4fsvuM5W1Lb1wvV4dyvNTmE=; b=FWIzZkraEkcgud1HWlwV8/U+b6UauaYNVQ+uLw+bAdxvsUelEp3lqoQmzrRNTA6swB irL9Y5hDzXRqinEJmkj65IQk2B4hvW4GHMr+tOrY8rZYXNS2wwgGhur7csW77o/vPtr3 YzKSkSSIbozzw41dS2aLdNM3gGbDrkKRV+PQoNrRzEMJoxUC0aeQa2XsRSugDjowhzW+ 6fXFGKo2LHwdyAvEdOrIimTaf3zLqdNRAbZ71FNnDg/CjOd5D7d3HbLTus/46us5Wnki ptv+0a2yI9uA3MjU2qCUhHZFhE+rVOCw1lC26Am4V+iQV4sS++zzVcSCoCOWP50q5f/w bPMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WAByG23uw4ZhLaTTk8eS4fsvuM5W1Lb1wvV4dyvNTmE=; b=HnPd9yvV3KDcY+y9FNPUeu0FAdHeWVt/TnMF6s5XsE2PIsZi4rIOMfgxSFrQE5pjLU 38WD9gVy3dRz1n30ZqrkndWAIRR23W0WRqmqwbYHNtPr2o3dHnBWetV9utf1fEXz+kGo yMH9/hKY3acRMusUOkMhI2RirfbIcnhKOg5XwQzEZbybSnOSXNUjQCdMU1ZHkcRlj0wP lxj0r9tbK+AEDoQFwC1A5qZdW4Z5gj7AkLfHgLZb1mf5ZfDrrZPgcj9pFSa8LEI63F87 WlB97oD/2uBIv1JRavImNHpqtsAgE4KRJPXSoaptk1uLE+lMJarMrkAyLkaor6gOVL3u 3e2g== X-Gm-Message-State: AMCzsaURfxmP1oo7/aJE4rRlBE/D5Oip4Lwj2ILrQmDoE34J9rMYLezQ 6p5lF0ySJBkWDFq5sHXhmtmsJaO1vrckw7v0D/MmiQ== X-Received: by 10.107.111.2 with SMTP id k2mr11702561ioc.39.1509774266225; Fri, 03 Nov 2017 22:44:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.174.42 with HTTP; Fri, 3 Nov 2017 22:44:25 -0700 (PDT) In-Reply-To: <6ed7d641-4fa2-77e1-9294-64d51193c786@google.com> References: <20171028095941.4773-1-joelaf@google.com> <20171028095941.4773-3-joelaf@google.com> <20171030120709.GO4240@vireshk-i7> <6ed7d641-4fa2-77e1-9294-64d51193c786@google.com> From: Joel Fernandes Date: Fri, 3 Nov 2017 22:44:25 -0700 Message-ID: Subject: Re: [PATCH RFC 2/5] sched/fair: Skip frequency update if CPU about to idle To: Steve Muckle Cc: Viresh Kumar , LKML , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , "Cc: Srinivas Pandruvada" , "Cc: Len Brown" , "Cc: Juri Lelli" , "Cc: Patrick Bellasi" , "Cc: Brendan Jackman" , "Cc: Chris Redpath" , "Cc: Atish Patra" , "Cc: Dietmar Eggemann" , "Cc: Vincent Guittot" , "Cc: Morten Ramussen" , "Cc: Frederic Weisbecker" , "Cc: Thomas Gleixner" , "Cc: EAS Dev" , "Cc: Android Kernel" , Steven Rostedt 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, Nov 1, 2017 at 12:35 PM, Steve Muckle wrote: > On 10/30/2017 12:02 PM, Joel Fernandes wrote: >>> >>> Also, this more looks like a policy decision. Will it be better to >>> put that directly into schedutil? Like this: >>> >>> if (cpu_idle()) >>> "Don't change the freq"; >>> >>> Will something like that work? >> >> >> I thought about this and I think it wont work very well. In the >> dequeue path we're still running the task being dequeued so the CPU is >> not yet idle. What is needed here IMO is a notion that the CPU is >> possibly about to idle and we can get predict that from the dequeue >> path of the CFS class. >> >> Also just looking at whether the CPU is currently idle or not in the >> governor doesn't help to differentiate between say the dequeue path / >> tick path. Both of which can occur when the CPU is not idle. >> >> Any thoughts about this? > > > Also if it really is the case that this bit of policy is universally > desirable, I'd think it is better to do this in the scheduler and avoid a > needless trip through a fn pointer out to schedutil for performance reasons. I agree. Peter, what do you think? Are you Ok with the approach of this patch (preventing of the cpufreq update call during dequeue)? thanks, - Joel From 1582893621292735026@xxx Wed Nov 01 19:36:32 +0000 2017 X-GM-THRID: 1582495113361800894 X-Gmail-Labels: Inbox,Category Forums