From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754769Ab2AaQMa (ORCPT ); Tue, 31 Jan 2012 11:12:30 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:33927 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754253Ab2AaQM3 (ORCPT ); Tue, 31 Jan 2012 11:12:29 -0500 Date: Tue, 31 Jan 2012 17:12:07 +0100 From: Ingo Molnar To: Arjan van de Ven Cc: linux-kernel@vger.kernel.org, Milton Miller , Andrew Morton , arjanvandeven@gmail.com, Linus Torvalds , Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" Subject: Re: smp: Start up non-boot CPUs asynchronously Message-ID: <20120131161207.GA18357@elte.hu> References: <20120130205444.22f5e26a@infradead.org> <20120131125232.GD4408@elte.hu> <20120131054155.371e8307@infradead.org> <20120131143130.GF13676@elte.hu> <20120131072216.1ce78e50@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120131072216.1ce78e50@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=AWL,BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 AWL AWL: From: address is in the auto white-list Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arjan van de Ven wrote: > On Tue, 31 Jan 2012 15:31:31 +0100 > Ingo Molnar wrote: > > > > > > > by inspection, anything that calls > > > get_online_cpus()/put_online_cpus() will block while a CPU > > > is coming up. This is used in things like > > > kmem_cache_create()... which is used about everywhere. > > > (there's various other places... more or less it's a > > > requirement for using the for_each_online_cpu() api > > > correctly) > > > > Still magic delays are not acceptable - we want to face any > > remaining performance problems head on, we want to > > understand and fix them correctly. > > it's not really a performance problem as it is an obvious "we > have a ton of back-to-back writers on a read-write lock that > we have quite a few readers for". Unless the writers back off > a little, the readers are going to get starved. I didn't think I'd ever quote Bush, but my reaction to that is: 'Bring it on!' ;-) Really, we don't want *more* random delays in kernel code. Thanks, Ingo