From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753626AbbC3OAQ (ORCPT ); Mon, 30 Mar 2015 10:00:16 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:59651 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752980AbbC3OAM (ORCPT ); Mon, 30 Mar 2015 10:00:12 -0400 Date: Mon, 30 Mar 2015 15:59:48 +0200 From: Peter Zijlstra To: Viresh Kumar Cc: Andrew Morton , Johannes Weiner , Christoph Lameter , Linaro Kernel Mailman List , Linux Kernel Mailing List , vinmenon@codeaurora.org, shashim@codeaurora.org, Michal Hocko , Mel Gorman , dave@stgolabs.net, Konstantin Khlebnikov , Linux Memory Management List , Suresh Siddha , Thomas Gleixner Subject: Re: [RFC] vmstat: Avoid waking up idle-cpu to service shepherd work Message-ID: <20150330135948.GY23123@twins.programming.kicks-ass.net> References: <20150327091613.GE27490@worktop.programming.kicks-ass.net> <20150327093023.GA32047@worktop.ger.corp.intel.com> <20150328095322.GH27490@worktop.programming.kicks-ass.net> <55169723.3070006@linaro.org> <20150328134457.GK27490@worktop.programming.kicks-ass.net> <20150329102440.GC32047@worktop.ger.corp.intel.com> <20150330124746.GI21418@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Mon, Mar 30, 2015 at 06:44:22PM +0530, Viresh Kumar wrote: > On 30 March 2015 at 18:17, Peter Zijlstra wrote: > > No, I means something else with that. We can remove the > > tvec_base::running_timer field. Everything that uses that can use > > tbase_running() AFAICT. > > Okay, there is one instance which still needs it. > > migrate_timers(): > > BUG_ON(old_base->running_timer); > > What I wasn't sure about it is if we get can drop this statement or not. > If we decide not to drop it, then we can convert running_timer into a bool. Yeah, so that _should_ not trigger (obviously), and while I agree with the sentiment of sanity checks, I'm not sure its worth keeping that variable around just for that. Anyway, while I'm looking at struct tvec_base I notice the cpu member should be second after the lock, that'll save 8 bytes on the structure on 64bit machines.