In message <[EMAIL PROTECTED]>, Hellmuth Michaelis writes
:
>>From the keyboard of Poul-Henning Kamp:
>
>> We need to be frugal about the kernel stack, for a lot of reasons,
>> that's just the way it is, and as far as I know it is the way
>> it will continue to be.
>
>Good. I'd like to learn something from it: Shall i avoid allocating
>structs on the kernel stack at all or is it just bad to allocate
>big structs ?

My own rule of thumb is "about 60 bytes or so", but it also depends
on the lifetime of the function.  If it is a leaf function which
doesn't call anything else I'll let it use more stack, if it is
a function which is burried at the bottom (top really) of the stack
all the time I'm less tolerant.

--
Poul-Henning Kamp             FreeBSD coreteam member
[EMAIL PROTECTED]               "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to