mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* is VM_GROWSDOWN still useful
@ 2010-08-21 15:58 castet.matthieu
  0 siblings, 0 replies; only message in thread
From: castet.matthieu @ 2010-08-21 15:58 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-21 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-21 15:58 is VM_GROWSDOWN still useful castet.matthieu

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®