is VM_GROWSDOWN still useful

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: castet.matthieu
Date: Saturday, August 21, 2010 - 8:58 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
is VM_GROWSDOWN still useful, castet.matthieu, (Sat Aug 21, 8:58 am)