# Re: \[RFC, PATCHv2 29/29\] mm, x86: introduce RLIMIT\_VADDR

- From: Andy Lutomirski \<luto@amacapital.net\>
- Date: 2017-01-05 17:56:48 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2017/01/4905604
- Thread: https://ratatoskr.run/linux-arch/2016/12/4900741/t.md

```text
On Wed, Jan 4, 2017 at 6:19 AM, Kirill A. Shutemov [ref] wrote:
> On Tue, Jan 03, 2017 at 10:27:22AM -0800, Andy Lutomirski wrote:
>> On Tue, Jan 3, 2017 at 8:04 AM, Kirill A. Shutemov [ref] wrote:
>> > And what about stack? I'm not sure that everybody would be happy with
>> > stack in the middle of address space.
>>
>> I would, personally.  I think that, for very large address spaces, we
>> should allocate a large block of stack and get rid of the "stack grows
>> down forever" legacy idea.  Then we would never need to worry about
>> the stack eventually hitting some other allocation.  And 2^57 bytes is
>> hilariously large for a default stack.
>
> The stack in the middle of address space can prevent creating other huuuge
> contiguous mapping. Databases may want this.

Fair enough.  OTOH, 2^47 is nowhere near the middle if we were to put
it near the top of the legacy address space.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
```
