From: Ingo Molnar <mingo@elte.hu>
To: William Lee Irwin III <wli@holomorphy.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] flexible-mmap-2.6.7-D5
Date: Sat, 19 Jun 2004 13:38:36 +0200 [thread overview]
Message-ID: <20040619113836.GA16197@elte.hu> (raw)
In-Reply-To: <20040619083446.GP1863@holomorphy.com>
* William Lee Irwin III <wli@holomorphy.com> wrote:
> Also, I suspect some more graceful fallback would make sense
> particularly for the case of RLIM_INFINITY, which would leave users
> that run with, say, all rlimits at RLIM_INFINITY in the interest of
> having full access to system resources with a mere 512MB of
> virtualspace for the heap, which IIRC glibc is intelligent enough to
> circumvent for malloc(), but not for mmap(NULL, ...). [...]
well, the 5/6=stack 1/6=malloc rule in the RLIM_INFINITY can be changed.
What would make the most sense - 1/2 for both?
> If it's been in production that long, I find it hard to believe that's
> never been tripped over. [...]
it's been tripped over and the 5/6 rule was a fix for such a bugreport.
What happens more in practice frequently is that someone needs a big
stack and sets the stack ulimit to RLIM_INFINITY.
> [...] (also, that 128MB is currently wasted); [...]
the 128MB is 'wasted' to give some flexibility to the stack rlimits
changing runtime. But in practice it's far more important to have the
mmap()/malloc() space maximized and flexible than to give the stack
automatic flexibility.
Ingo
next prev parent reply other threads:[~2004-06-19 11:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 21:38 [patch] flexible-mmap-2.6.7-D5 Ingo Molnar
2004-06-18 23:16 ` William Lee Irwin III
2004-06-19 7:46 ` Ingo Molnar
2004-06-19 8:34 ` William Lee Irwin III
2004-06-19 11:38 ` Ingo Molnar [this message]
2004-06-19 21:34 ` William Lee Irwin III
2004-06-19 8:06 ` Ingo Molnar
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=20040619113836.GA16197@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.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