From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Linda Walsh <lkml@tlinx.org>
Cc: Paulo Marques <pmarques@grupopie.com>,
Adrian Bunk <bunk@stusta.de>,
Jan Engelhardt <jengelh@linux01.gwdg.de>,
Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Save 320K on production machines?
Date: Fri, 31 Mar 2006 11:48:51 +0200 [thread overview]
Message-ID: <20060331094851.GC14713@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <442C4ECF.3080505@tlinx.org>
On Thu, 30 March 2006 13:34:07 -0800, Linda Walsh wrote:
>
> 1) It would be nice if a "stack usage" option could be turned on
> that would do some sort of run-time bounds checking that could
> display the max-stack used "so far" in "/proc".
Would CONFIG_DEBUG_STACK_USAGE=y do what you want?
> 2) How difficult would it be to place kernel stack in a "pageable" pool
> where the limit of valid data in a 4K page is only 3.5K - then
> when a kernel routine tries to exceed the stack boundary, it takes a
> page fault where a "note" could be logged that more stack was "needed",
> then automatically map another 4K page into the stack and return to
> interrupted routine.
S390 has something a bit like that. They can specify the stack limit
and get an exception when a function is trying to grow the stack
beyond the limit. Martin Schwidefsky might know the details a bit
better.
Jörn
--
You ain't got no problem, Jules. I'm on the motherfucker. Go back in
there, chill them niggers out and wait for the Wolf, who should be
coming directly.
-- Marsellus Wallace
next prev parent reply other threads:[~2006-03-31 9:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-26 8:31 Linda Walsh
2006-03-26 9:24 ` Jan Engelhardt
2006-03-26 10:06 ` Adrian Bunk
2006-03-27 10:22 ` Linda Walsh
2006-03-27 11:36 ` Paulo Marques
2006-03-30 21:34 ` Linda Walsh
2006-03-31 9:43 ` Adrian Bunk
2006-03-31 9:48 ` Jörn Engel [this message]
2006-03-26 10:39 ` Andre Tomt
2006-03-27 10:05 ` Linda Walsh
2006-03-28 14:29 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060331094851.GC14713@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=bunk@stusta.de \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@tlinx.org \
--cc=pmarques@grupopie.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®