On Wed, 2009-07-08 at 13:22 -0400, Dave Jones wrote:> On Tue, Jul 07, 2009 at 05:55:01PM +0200, Peter Zijlstra wrote:> > On Tue, 2009-07-07 at 16:50 +0100, Joao Correia wrote:> > > > > >> Yes. Anything 2.6.31 forward triggers this immediatly during init> > > >> process, at random places.> > > >> > > > Not on my machines it doesn't.. so I suspect its something weird in> > > > your .config or maybe due to some hardware you have that I don't that> > > > triggers different drivers or somesuch.> > > > > > I am not the only one reporting this, and it happens, for example,> > > with a stock .config from a Fedora 11 install.> > > > > > It may, of course, be a funny driver interaction yes, but other than> > > stripping the box piece by piece, how would one go about debugging> > > this otherwise?> > > > One thing to do is stare (or share) at the output> > of /proc/lockdep_chains and see if there's some particularly large> > chains in there, or many of the same name or something.> > I don't see any long chains, just lots of them.> 29065 lines on my box that's hitting MAX_STACK_TRACE_ENTRIES > > > /proc/lockdep_stats might also be interesting, mine reads like:> > lock-classes: 1518 [max: 8191]> direct dependencies: 7142 [max: 16384]

Since we have 7 states per class, and can take one trace per state, andalso take one trace per dependency, this would yield a max of:

7*1518+7142 = 17768 stack traces

With the current limit of 262144 stack-trace entries, that would leaveus with and avg depth of:

262144/17768 = 14.75

Now since we would not use all states for each class, we'd likely have alittle more, but that would still suggest we have rather deep stacktraces on avg.

Looking at a lockdep dump hch gave me I can see that that is certainlypossible, I see tons of very deep callchains.

/me wonders if we're getting significantly deeper..

OK I guess we can raise this one, does doubling work? That would get usaround 29 entries per trace..

Also, Dave do these distro init scrips still load every module on theplanet or are we more sensible these days?