Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031351AbbKEKJ3 (ORCPT ); Thu, 5 Nov 2015 05:09:29 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:35679 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030570AbbKEKJ1 (ORCPT ); Thu, 5 Nov 2015 05:09:27 -0500 Date: Thu, 5 Nov 2015 11:09:22 +0100 From: Peter Zijlstra To: Jacob Pan Cc: Thomas Gleixner , LKML , Arjan van de Ven , Paul Turner , Len Brown , Srinivas Pandruvada , Tim Chen , Andi Kleen , Rafael Wysocki Subject: Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection Message-ID: <20151105100922.GA3604@twins.programming.kicks-ass.net> References: <1446509428-5616-1-git-send-email-jacob.jun.pan@linux.intel.com> <1446509428-5616-4-git-send-email-jacob.jun.pan@linux.intel.com> <20151103133120.GD17308@twins.programming.kicks-ass.net> <20151103084501.289ec5d1@yairi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151103084501.289ec5d1@yairi> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1562 Lines: 37 On Tue, Nov 03, 2015 at 08:45:01AM -0800, Jacob Pan wrote: > Fair enough, I will give that a try, I guess it would be costly > and hard to scale if we were to dequeue/enqueue every se for every > period of injection plus locking. Let me get some data first. Yeah, don't go dequeue/enqueue everything, the regular throttle code doesn't do that either. Throttling the root is more interesting though, becuase you can simply dequeue the child group representative, whereas you cannot dequeue the root (for being the root means there is no parent to dequeue from). > I understand we don't want to sacrifice the hot patch for some code > almost 'never' run. But I also have follow up plan to use this code for > consolidating/synchronizing idle during balanced semi-active workload. > In that case, it may run more often. e.g. > > Before: > CPU0 ______||| || |___________| || || |_____ > CPU1 _________||| || |_______| || |_______ > > After: > > CPU0 ______||| || |___________| || || |_____ > CPU1 ______||| || |___________| || |_______ > > The goal is to have overlapping idle time if the load is already > balanced. The energy saving can be significant. I can see such a scheme having a fairly big impact on latency, esp. with forced idleness such as this. That's not going to be popular for many workloads. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/