From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761168AbZFJVBS (ORCPT ); Wed, 10 Jun 2009 17:01:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752109AbZFJVBD (ORCPT ); Wed, 10 Jun 2009 17:01:03 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:43518 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752416AbZFJVBC (ORCPT ); Wed, 10 Jun 2009 17:01:02 -0400 Date: Wed, 10 Jun 2009 23:00:26 +0200 From: Ingo Molnar To: Pekka J Enberg Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, cl@linux-foundation.org, hannes@cmpxchg.org, mpm@selenic.com, npiggin@suse.de, yinghai@kernel.org Subject: Re: [GIT PULL] Early boot SLAB for 2.6.31 Message-ID: <20090610210026.GA2346@elte.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pekka J Enberg wrote: > Hi Linus, > > Here are the core patches for enabling slab before the scheduler initializes > itself in the boot sequence. I added slab fallback support to the bootmem > allocator so that we don't need a flag day for switching to early slab. > > I have tested this series on x86-64 with SLAB, SLUB, and SLOB. Note: the > following harmless warning appears at boot: > > [ 0.000000] ------------[ cut here ]------------ > [ 0.000000] WARNING: at mm/bootmem.c:535 alloc_arch_preferred_bootmem+0x31/0x56() > [ 0.000000] Hardware name: > [ 0.000000] Modules linked in: > [ 0.000000] Pid: 0, comm: swapper Not tainted 2.6.30 #472 > [ 0.000000] Call Trace: > [ 0.000000] [] ? alloc_arch_preferred_bootmem+0x31/0x56 > [ 0.000000] [] warn_slowpath_common+0x7c/0xa9 > [ 0.000000] [] warn_slowpath_null+0x14/0x16 > [ 0.000000] [] alloc_arch_preferred_bootmem+0x31/0x56 > [ 0.000000] [] ___alloc_bootmem_nopanic+0x3f/0xc9 > [ 0.000000] [] ___alloc_bootmem+0x11/0x3a > [ 0.000000] [] __alloc_bootmem+0xb/0xd > [ 0.000000] [] sched_init+0x43/0x4ee > [ 0.000000] [] start_kernel+0x1cc/0x3aa > [ 0.000000] [] x86_64_start_reservations+0xaa/0xae > [ 0.000000] [] x86_64_start_kernel+0xe1/0xe8 > [ 0.000000] ---[ end trace 4eaa2a86a8e2da22 ]--- Yeah, i got this too: [ 0.004000] spurious 8259A interrupt: IRQ7. [ 0.004000] ------------[ cut here ]------------ [ 0.004000] WARNING: at mm/bootmem.c:537 alloc_arch_preferred_bootmem+0x40/0x7e() [ 0.004000] Hardware name: System Product Name [ 0.004000] Modules linked in: [ 0.004000] Pid: 0, comm: swapper Not tainted 2.6.30-tip-02102-g994fdea-dirty #52083 [ 0.004000] Call Trace: [ 0.004000] [] ? alloc_arch_preferred_bootmem+0x40/0x7e [ 0.004000] [] warn_slowpath_common+0x8d/0xd0 [ 0.004000] [] warn_slowpath_null+0x27/0x3d [ 0.004000] [] alloc_arch_preferred_bootmem+0x40/0x7e [ 0.004000] [] ? vprintk+0x2d6/0x31b [ 0.004000] [] ___alloc_bootmem_nopanic+0x4e/0xec [ 0.004000] [] ___alloc_bootmem+0x20/0x61 [ 0.004000] [] ? default_spin_lock_flags+0x1e/0x36 [ 0.004000] [] __alloc_bootmem+0x1e/0x34 [ 0.004000] [] vgacon_scrollback_startup+0x3d/0xa4 [ 0.004000] [] ? native_io_delay+0xd/0x58 [ 0.004000] [] vgacon_startup+0x38f/0x3be [ 0.004000] [] ? early_idt_handler+0x0/0x71 [ 0.004000] [] con_init+0x2e/0x246 [ 0.004000] [] ? early_idt_handler+0x0/0x71 [ 0.004000] [] console_init+0x28/0x50 [ 0.004000] [] ? native_irq_enable+0xb/0xc [ 0.004000] [] start_kernel+0x20e/0x35b [ 0.004000] [] ? early_idt_handler+0x0/0x71 [ 0.004000] [] ? early_idt_handler+0x0/0x71 [ 0.004000] [] x86_64_start_reservations+0xb9/0xd4 [ 0.004000] [] ? __init_begin+0x0/0x140 [ 0.004000] [] x86_64_start_kernel+0x104/0x127 [ 0.004000] ---[ end trace a7919e7f17c0a725 ]--- [ 0.004000] Console: colour VGA+ 80x25 [ 0.004000] console handover: boot [earlyser0] -> real [ttyS0] box booted up fine otherwise. Ingo