Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752654AbcDBHXx (ORCPT ); Sat, 2 Apr 2016 03:23:53 -0400 Received: from casper.infradead.org ([85.118.1.10]:35487 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751231AbcDBHXw (ORCPT ); Sat, 2 Apr 2016 03:23:52 -0400 Date: Sat, 2 Apr 2016 09:23:37 +0200 From: Peter Zijlstra To: Frederic Weisbecker Cc: LKML , Byungchul Park , Chris Metcalf , Thomas Gleixner , Luiz Capitulino , Christoph Lameter , "Paul E . McKenney" , Mike Galbraith , Rik van Riel , Ingo Molnar Subject: Re: [PATCH 3/4] sched: Optimize tick periodic cpu load updates Message-ID: <20160402072337.GF2906@worktop> References: <1459516987-15745-1-git-send-email-fweisbec@gmail.com> <1459516987-15745-4-git-send-email-fweisbec@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459516987-15745-4-git-send-email-fweisbec@gmail.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 27 On Fri, Apr 01, 2016 at 03:23:06PM +0200, Frederic Weisbecker wrote: > Don't bother with the whole pending tickless cpu load machinery if > we run a tick periodic kernel. That's less job for the CPU on ticks. Again, the changelog really could use help. Is this a pure optimization patch? If so, do you have numbers? > +++ b/kernel/sched/sched.h > @@ -585,8 +585,10 @@ struct rq { > #endif > #define CPU_LOAD_IDX_MAX 5 > unsigned long cpu_load[CPU_LOAD_IDX_MAX]; > +#ifdef CONFIG_NO_HZ_COMMON > +# ifdef CONFIG_SMP I'm not a fan of this #ifdef indenting and nothing near there uses this style, so please don't introduce it here. > unsigned long last_load_update_tick; > -#ifdef CONFIG_NO_HZ_COMMON > +# endif > u64 nohz_stamp; > unsigned long nohz_flags; > #endif > -- > 2.7.0 >