Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Sandeen <sandeen@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Jesper Juhl <jesper.juhl@...>
Date: Wednesday, May 28, 2008 - 10:36 am

On Wed, Aug 29, 2007 at 6:34 PM, Eric Sandeen <sandeen@redhat.com> wrote:

Hi Eric,

Did you happen to get a patch together that reduces the stack usage of
dump_stack?

Also, what did you use to print your (above) indented callchain stack
usage of dump_stack?

I'd like to be able to audit the worst case stack usage of _all_ call
chains that originate from a given thread. This would effectively be
like DEBUG_STACK_USAGE except with finer grained (per call-chain)
statistics.  One crude way of doing this is to dump_stack() whenever a
task's call-chain is the new "winner" as the biggest stack hog.

To do this safely it would seem to me that a leaner dump_stack() is needed...

Lastly, would it be reasonable to utilize systemtap to implement what
I described above?  I'm actually looking to debug 4KSTACKS as
unobtrusively as possible so as to not alter the underlying kernel (in
this case it happens to be a RHEL5 kernel but this could apply to any
kernel).

please advise, thanks.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
4KSTACKS + DEBUG_STACKOVERFLOW harmful, Eric Sandeen, (Wed Aug 29, 6:34 pm)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Mike Snitzer, (Wed May 28, 10:36 am)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Eric Sandeen, (Wed May 28, 11:13 am)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Denys Vlasenko, (Fri Aug 31, 7:11 am)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Jörn, (Fri Aug 31, 10:35 am)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Denys Vlasenko, (Fri Aug 31, 1:16 pm)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Jesper Juhl, (Wed Aug 29, 6:53 pm)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Eric Sandeen, (Wed Aug 29, 7:01 pm)
Re: 4KSTACKS + DEBUG_STACKOVERFLOW harmful, Kyle Moffett, (Wed Aug 29, 7:55 pm)