Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080AbZGBKqI (ORCPT ); Thu, 2 Jul 2009 06:46:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751983AbZGBKp6 (ORCPT ); Thu, 2 Jul 2009 06:45:58 -0400 Received: from mail-bw0-f225.google.com ([209.85.218.225]:63408 "EHLO mail-bw0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbZGBKp5 (ORCPT ); Thu, 2 Jul 2009 06:45:57 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=H9zY+z6dfLY8K3ijZrtwpiVPOo45eGIgcwDn2vElDcJTImLCtzmEVUz3AVR/Cn8QIv 1qDc6uCvvotSINqR+qn4Zic5mbUutoJZ5ShtG2oDWaOojcrXs7xKLBEbo5sU7gtcHMVU 8zBNit90qhJje8gUXYYCHmz1AND2tZfCbiEXs= MIME-Version: 1.0 In-Reply-To: <1246530720.4752.12.camel@laptop> References: <2375c9f90906281908k7aa089a3v932dd368d572194b@mail.gmail.com> <20090629091508.GA6308@cr0.nay.redhat.com> <20090630091640.GB5873@cr0.nay.redhat.com> <20090702093120.GD6372@cr0.nay.redhat.com> <1246530720.4752.12.camel@laptop> From: Joao Correia Date: Thu, 2 Jul 2009 11:45:39 +0100 Message-ID: Subject: Re: lockdep max numbers (was Re: Crashes during boot on 2.6.30 / 2.6.31-rc, random programs) To: Peter Zijlstra Cc: Amerigo Wang , linux-kernel@vger.kernel.org, Joerg Roedel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2196 Lines: 66 Every boot, different programs, on a fedora 11 box. If i dont touch any of the limits mentioned, it happens every boot. Changing the two values mentioned, a third complain appears, althouh more infrequently. I have had MAX_LOCKDEP_CHAINS pop up regarding qemu-kvm, and once again on unrar, during regular box usage. (quad core phenom 9600, asus m3a-h/hdmi board with 4gb ram). Thank you very much for your time, Joao Correia Centro de Informatica Universidade da Beira Interior Portugal On Thu, Jul 2, 2009 at 11:32 AM, Peter Zijlstra wrote: > On Thu, 2009-07-02 at 17:31 +0800, Amerigo Wang wrote: >> On Wed, Jul 01, 2009 at 09:30:23PM +0100, Joao Correia wrote: >> >Hello again >> > >> >Looks like this just opened the lid on some other limits. I just hit >> >another thing, which hadn't shown up before i made the changes, but >> >looks like its just another limit thats too low. This one is harder to >> >reproduce tho. >> > >> >Jun 30 21:35:03 hightech kernel: BUG: MAX_LOCKDEP_CHAINS too low! >> >Jun 30 21:35:03 hightech kernel: turning off the locking correctness validator. >> >Jun 30 21:35:03 hightech kernel: Pid: 9379, comm: qemu-kvm Not tainted >> >> >> Similar problem... >> >> Peter? Would like to increase these numbers? > >> >2.6.30-wl #3 > >> >Jun 30 21:35:03 hightech kernel: [] debug_dma_map_sg+0xe1/0x147 > > We recently fixed the dma debug stuff to require less lockdep resources, > Joerg might know if that made it into .30. > >> >>>So i dug a little on the source and changed >> >>> >> >>>include/linux/sched.h >> >>> >> >>># define MAX_LOCK_DEPTH 48UL >> >>> >> >>>to >> >>> >> >>># define MAX_LOCK_DEPTH 96UL > >> >> Let's Cc: Peter to see if he would like to change this number... >> >> >> >> Peter? > > I really don't think we want to raise this, I mean, holding more that 48 > locks at the same time is somewhat pushing it, don't you think? > > Where do you run into this limit? > > -- 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/