From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755008AbZEZHiV (ORCPT ); Tue, 26 May 2009 03:38:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752967AbZEZHiO (ORCPT ); Tue, 26 May 2009 03:38:14 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59162 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbZEZHiN (ORCPT ); Tue, 26 May 2009 03:38:13 -0400 Date: Tue, 26 May 2009 09:38:13 +0200 From: Nick Piggin To: Pekka Enberg Cc: Linus Torvalds , Ingo Molnar , Yinghai Lu , Rusty Russell , "H. Peter Anvin" , Jeff Garzik , Alexander Viro , Linux Kernel Mailing List , Andrew Morton , Peter Zijlstra , cl@linux-foundation.org, mpm@selenic.com Subject: Re: [GIT PULL] scheduler fixes Message-ID: <20090526073813.GE21496@wotan.suse.de> References: <20090525025353.GA2580@elte.hu> <4A1A2261.1000504@kernel.org> <20090525051521.GC23032@elte.hu> <20090525112504.GB24071@wotan.suse.de> <84144f020905250437x585e66a2oc1124a4f1f43059d@mail.gmail.com> <20090525114127.GE24071@wotan.suse.de> <4A1AE5CC.1000209@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A1AE5CC.1000209@cs.helsinki.fi> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 25, 2009 at 09:39:08PM +0300, Pekka Enberg wrote: > Linus Torvalds wrote: > >And vfs_caches_init_early() is actually doing some rather strange things, > >like doing a "alloc_large_system_hash()" but not unconditionally: it does > >it in the "late" initialization too, if not done early. inode_init_early > >does soemthing very similar (ie a _conditional_ early init). > > > >So none of this seems to really get a huge advantage from the early init. > >There seems to be some subtle NUMA issues, but do we really want that? I > >get the feeling that nobody ever wanted to do it early, and then the NUMA > >people said "I don't wnt to do this early, but I don't want to touch the > >non-NUMA case, so I'll do it early for non-numa, and late for numa". > > SLUB does sysfs setup in kmem_cache_init() and if I saw some oopses if I > don't call vfs_caches_init_early() first. I didn't look too closely, though. Did you also test the NUMA/hashdist case? vfs_caches_init_early doesn't do much in that case. I would say it is much more robust to do sysfs setup later if we move the slab setup so early. Probably it is just quite lucky not to explode in the !numa case because the vfs needs quite a bit of setting up...