From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbbG3Lvv (ORCPT ); Thu, 30 Jul 2015 07:51:51 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60501 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751503AbbG3Lvt (ORCPT ); Thu, 30 Jul 2015 07:51:49 -0400 Date: Thu, 30 Jul 2015 13:51:39 +0200 From: Peter Zijlstra To: pang.xunlei@zte.com.cn Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Xunlei Pang Subject: Re: [PATCH] sched: Avoid sched domain rebuilding when hotplugging an isolate cpu Message-ID: <20150730115139.GG25159@twins.programming.kicks-ass.net> References: <1437120225-16466-1-git-send-email-xlpang@126.com> <20150730103037.GU19282@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 Thu, Jul 30, 2015 at 06:54:47PM +0800, pang.xunlei@zte.com.cn wrote: > Hi Peter, > > Peter Zijlstra wrote 2015-07-30 PM 06:30:37: > > Re: [PATCH] sched: Avoid sched domain rebuilding when hotplugging an > > isolate cpu > > > > On Fri, Jul 17, 2015 at 04:03:45PM +0800, Xunlei Pang wrote: > > > From: Xunlei Pang > > > > > > The sched domain is always rebuilt when hotplugging an isolate cpu, > > > as we can see in partition_sched_domains() with the NULL doms_new, > > > current sched domain is destroyed, then rebuilt. Worse still, the > > > rebuilding will reset all the parameters of the sched_domain. This > > > makes no sense and contradicts the isloate concept. > > > > What parameters? isolcpus should have fairly trivial domains to begin > > with. > > I mean the parameters under > /proc/sys/kernel/sched_domain/cpu/domain, > they will be reset to the default value once sched domain is rebuilt, if > users have tuned them before, it's very annoying. > > So we should avoid the rebuilding if can, like the case in this patch. No, those are _DEBUG_ knobs, they're not guaranteed to have any persistence what so ever.