Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 1999 10:50:36 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Thierry.Besancon@lps.ens.fr
Cc:        Luoqi Chen <luoqi@watermarkgroup.com>, Thierry.Besancon@tournesol.lps.ens.fr, dwhite@gdi.uoregon.edu, freebsd-smp@FreeBSD.ORG, Pierre.David@prism.uvsq.fr, alc@cs.rice.edu, jt@ratp.fr
Subject:   Re: lockmgr() panic
Message-ID:  <199903101850.KAA56970@apollo.backplane.com>
References:  <199903101435.JAA11204@lor.watermarkgroup.com> <wnn3e3dqu7v.fsf@excalibur.lps.ens.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

:>> This is a completely different problem. 
:
:Life sucks today.
:
:Reading src/sys/kern/kern_lock.c, I saw this piece of code that might
:be relevant with this problem :
:
:#if !defined(MAX_PERF) 
:                        if ((extflags & LK_CANRECURSE) == 0)
:                                panic("lockmgr: locking against myself"); 
:#endif 
:
:Before defining the flag, does anybody know what MAX_PERF implies
:other than not panicing the kernel ? What does it means ?

    MAX_PERF means 'maximum performance'.  Note that the conditional 
    is an '#if !defined ...' conditional, not an '#if defined ...'
    conditional.  

    This means that by default, when MAX_PERF is *not* defined, the above
    code *will* be executed.

    If MAX_PERF is defined, the system removes many sanity checks from the
    kernel that would otherwise be compiled in.  I would recommend that you
    *NOT* define it.

						-Matt

:        Thierry
:

					Matthew Dillon 
					<dillon@backplane.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903101850.KAA56970>