lkml.org 
[lkml]   [1998]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How much kernel stack do we need?
Hi John !

> You could experiment by initializing the stack such that only a portion
> was used. For example, allocate 4K, allocate kernel stuff, and then set
> the pointers such that only 1K is available for use. That would expose
> the memory hogs quickly. That is a pure debug case, of coruse.

This is IMHO an extreme bad idea. The solution without crashing:
init: alloc stack, fill with a magic (ex.: 0xdeadbeef)
destroy: scan for magic on stack to calculate stackspace

--
ciao -
Stefan

Stefan Traby phone: +43-3133-6107-2
Mitterlasznitzstr. 13 fax: +43-3133-6107-9
8302 Nestelbach mailto://stefan@sime.com
Austria

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.061 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site