From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [uml-devel] [PATCH 4/5] UML - Simplify helper stack handling
Date: Tue, 3 Jul 2007 13:26:38 -0400 [thread overview]
Message-ID: <20070703172638.GA31640@c2.user-mode-linux.org> (raw)
In-Reply-To: <200707031728.36472.blaisorblade@yahoo.it>
On Tue, Jul 03, 2007 at 05:28:30PM +0200, Blaisorblade wrote:
> > fchown01 used greatest stack depth: 4892 bytes left
>
> > That's the sum of process stack and interrupt stack, but I doubt if this
> > little box is using much interrupt stack space.
> >
> > No wonder people are still getting stack overflows with 4k stacks...
>
> First, those numbers pretend to be _unused_ stack space.
But on an 8K stack. If you pretend to be on a 4K stack, and take 4K
away from that, those numbers are 100s of bytes away from eating the
stack.
> Well, UML tends to use more stack space than the rest of
> kernel. Apart it has a bit more layering (even if less than in the
> past), we must use libc's function too, and they're not written to
> be executed on an 8k stack.
We don't use very much of libc on kernel stacks. Also, various things
have been done to reduce stack usage. We no longer initialize kernel
stacks with a signal frame on them. We now have IRQ stacks. I've
also done some amount of general stack usage reduction. I haven't
seen anything come very close to running out of stack.
Jeff
--
Work email - jdike at linux dot intel dot com
next prev parent reply other threads:[~2007-07-03 17:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 20:26 [PATCH 4/5] UML - Simplify helper stack handling Jeff Dike
2007-06-26 20:35 ` Andrew Morton
2007-06-26 21:53 ` [uml-devel] " Jeff Dike
2007-06-26 22:07 ` Andrew Morton
2007-06-28 6:37 ` Andrew Morton
2007-07-03 15:28 ` [uml-devel] " Blaisorblade
2007-07-03 15:58 ` Andrew Morton
2007-07-03 17:26 ` Jeff Dike [this message]
2007-08-05 20:41 ` Luca Tettamanti
2007-08-05 20:54 ` Andrew Morton
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=20070703172638.GA31640@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=akpm@linux-foundation.org \
--cc=blaisorblade@yahoo.it \
--cc=linux-kernel@vger.kernel.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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