public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel stack size
@ 2005-04-02 17:46 ooyama eiichi
  2005-04-02 17:53 ` Chris Wedgwood
  0 siblings, 1 reply; 15+ messages in thread
From: ooyama eiichi @ 2005-04-02 17:46 UTC (permalink / raw)
  To: linux-kernel

Hi all,

How can I know the rest size of the kernel stack.
(in my kernel driver)
Thanks.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: kernel stack size
@ 2005-04-02 20:14 Manfred Spraul
  2005-04-02 22:15 ` Steven Rostedt
  0 siblings, 1 reply; 15+ messages in thread
From: Manfred Spraul @ 2005-04-02 20:14 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Linux Kernel Mailing List

Steven Rostedt wrote:

>I admit you really need to know what you're doing to use this method. If
>I believe that a kmalloc would be too expensive, then I use the locking
>of static variables. But each situation is different and I try to use
>the best method for the occasion.
>  
>
Have you benchmarked your own memory manager?
kmalloc(1024, GFP_KERNEL) is something like 17 instructions on i386 
uniprocessor.

--
    Manfred

^ permalink raw reply	[flat|nested] 15+ messages in thread
* kernel stack size
@ 2003-10-09 19:14 Punj, Arun
  0 siblings, 0 replies; 15+ messages in thread
From: Punj, Arun @ 2003-10-09 19:14 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'; +Cc: Punj, Arun



Folks,

I am using 2.4.20 on a pentium with 256M ram. I am calling a 
function fxxx() in the user_mode, which results in an 
ioctl to a driver in kernel space. The function which handles
this function is k_fxx(), and this function calls some other
nested functions. IMHO somewhere in this call thread the stack
overflows and the process [which called fxxx] coredumps. How can 
I verify this hypothesis ? Is it possible to change the size of
the kernel for user process? can I set it per process ?

Please cc: Arun.Punj@marconi.com in your replies.

thanks
Arun

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-04-03 19:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-02 17:46 kernel stack size ooyama eiichi
2005-04-02 17:53 ` Chris Wedgwood
2005-04-02 18:15   ` ooyama eiichi
2005-04-02 18:24     ` Chris Wedgwood
2005-04-02 18:48       ` ooyama eiichi
2005-04-02 19:04         ` Steven Rostedt
2005-04-02 19:37           ` Al Viro
2005-04-02 19:52             ` Steven Rostedt
2005-04-02 18:29     ` Brian Gerst
  -- strict thread matches above, loose matches on Subject: below --
2005-04-02 20:14 Manfred Spraul
2005-04-02 22:15 ` Steven Rostedt
2005-04-03  7:10   ` Manfred Spraul
2005-04-03 18:01     ` Steven Rostedt
2005-04-03 19:23       ` Manfred Spraul
2003-10-09 19:14 Punj, Arun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox