From: castet.matthieu@free.fr
To: linux-kernel@vger.kernel.org
Subject: is VM_GROWSDOWN still useful
Date: Sat, 21 Aug 2010 17:58:57 +0200 [thread overview]
Message-ID: <1282406337.4c6ff7c1533ad@imp.free.fr> (raw)
Hi,
I am wondering if the flags GROWSDOWN/GROWSUP is still useful on linux today. It
is only used for the main thread stack.
Stack allocated by pthread doesn't use anymore GROWSDOWN because you can't
guaranty that a user mapping (via mmap) will collide with it.
Why not doing the same for the main thread : allocate a stack of the rlimit size
?
Linux memory allocation use over-commit, and physical memory will only be
allocated when the stack is really used.
Or are they real usage of GROWSDOWN ?
Matthieu
reply other threads:[~2010-08-21 15:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1282406337.4c6ff7c1533ad@imp.free.fr \
--to=castet.matthieu@free.fr \
--cc=linux-kernel@vger.kernel.org \
/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®