OpenSolaris

Printable Version Enter a New Search
Bug ID 4922366
Synopsis time to increase the default kernel stack size on sun4u
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:other
Keywords
Responsible Engineer Valerie Henson
Reported Against s10_23 , s10_30 , s10_40 , s10_41 , s10_42 , s10_44 , s10_66 , s9u2_fcs
Duplicate Of
Introduced In
Commit to Fix s10_46
Fixed In s10_46
Release Fixed solaris_10(s10_46)
Related Bugs 6298158 , 4591040 , 4719361 , 4838193 , 4904460 , 4919007 , 4934819 , 6814383 , 6842059 , 4846677 , 4757102 , 4784423 , 4957614 , 5070448 , 4525533 , 5105514
Submit Date 13-September-2003
Last Update Date 25-January-2006
Description
Multiple different subsystems are running into stack overflow problems on sun4u.  The call chains look reasonable: no recursion, no outrageous stack allocations.  They are just deep - stack depth around 50 or so.

 xxxxx@xxxxx.com 2003-09-12

Two other project teams have already contacted me about the same problem,
arising in completely different contexts.  My response:

Subject: Re: More kernel stack overflows

> Jeff, maybe you can provide a wise viewpoint, or suggestions on how
> we might get out of this mess.

Yep.  Grow the kernel stack.  Memory is cheap.  Panics are expensive.

I've been through several kernel stack crises before.  They always unfold
the same way.  Some particular workload goes too deep.  We prune a few
stack frames to fix the offending code path.  Then another one comes up.
And another.  (Right about now someone suggests that instead of growing
the stack for every thread, we should finally bite the bullet and make
the kernel stack growable.  I dig up my mail archive from the last time
we contemplated this, and explain why it's much harder than it sounds.)
Eventually the panic rate becomes so high that we have to act.  Nobody
can figure out how to make dynamic stack growth work reliably, so after
one more jurassic outage we accept physics and grow the stack.

So my proposal is that this time, we dispense with all the hand-wringing
and just grow the damn thing.

Jeff
Work Around
N/A
Comments
N/A