Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755362AbbK3WKB (ORCPT ); Mon, 30 Nov 2015 17:10:01 -0500 Received: from casper.infradead.org ([85.118.1.10]:35227 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754187AbbK3WJ7 (ORCPT ); Mon, 30 Nov 2015 17:09:59 -0500 Date: Mon, 30 Nov 2015 23:09:53 +0100 From: Peter Zijlstra To: Waiman Long Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch , Paul Turner , Ben Segall , Morten Rasmussen , Yuyang Du Subject: Re: [RFC PATCH 3/3] sched/fair: Use different cachelines for readers and writers of load_avg Message-ID: <20151130220953.GD3816@twins.programming.kicks-ass.net> References: <1448478580-26467-1-git-send-email-Waiman.Long@hpe.com> <1448478580-26467-4-git-send-email-Waiman.Long@hpe.com> <20151130102240.GH17308@twins.programming.kicks-ass.net> <565C9FDC.9020603@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <565C9FDC.9020603@hpe.com> 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: 933 Lines: 19 On Mon, Nov 30, 2015 at 02:13:32PM -0500, Waiman Long wrote: > >This begs the question tough; why are you running a global load in a > >cgroup; and do we really need to update this for the root cgroup? It > >seems to me we don't need calc_tg_weight() for the root cgroup, it > >doesn't need to normalize its weight numbers. > > > >That is; isn't this simply a problem we should avoid? > > I didn't use any cgroup in my test setup. Autogroup was enabled, though. > Booting up a 4.4-rc2 kernel caused sched_create_group() to be called 56 > times. Yeah, can you kill autogroup and see if that helps? If not, we probably should add some code to avoid calculating things for the root group. -- 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/