Re: [Minor patch] Reduce __print_symbol/sprint_symbol stack usage.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gilboad@...>
Cc: <linux-kernel@...>, Eric Sandeen <sandeen@...>
Date: Saturday, September 15, 2007 - 9:02 am

Hi,


On 9/15/07, Gilboa Davara <gilboad@gmail.com> wrote:

Yeah, I have experienced this phenomenon/problem myself.



__print_symbol() and sprint_symbol() are called multiple times during
oopsen / panics. I think those buffers were static char arrays for a good
reason ...



Anything that touches the panic codepath is important, not minor at all.



That's not a performance optimization -- avoiding repeated kmalloc()'s in the
panic codepath sounds like a *requirement* to me.



I think not bothering about any locking in these codepaths may not be an
entirely unreasonable thing to do (sorry about the triple negation in the
sentence). What I mean is that there are places in these codepaths where
we already don't bother with locking ...

Overall I don't much like introducing kmalloc(GFP_ATOMIC) in these codepaths
and would ask you guys to consider some other pre-allocation (i.e. static
allocation not on stack but in .data) alternative instead ...


Satyam


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Minor patch] Reduce __print_symbol/sprint_symbol stack ..., Satyam Sharma, (Sat Sep 15, 9:02 am)
Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage., Steven Rostedt, (Fri Sep 21, 10:56 am)