From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 6 Apr 2001 22:21:14 +0100 (BST) From: Hugh Dickins Subject: Re: memory allocation problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Wayne Whitney Cc: Mark Hahn , majer@endeca.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Fri, 6 Apr 2001, Wayne Whitney wrote: > > As was pointed out to me in January, another solution for i386 would be to > fix a maximum stack size and have the mmap() allocations grow downward > from the "top" of the stack (3GB - max stack size). I'm not sure why that > is not currently done. I'd be interested in the answer to that too. Typically, the memory layout has ELF text at the lowest address, starting at 0x08048000 - which is a curious place to put it, until you realize that if you place the stack below it, you can use (in a typical small program) just one page table for stack + text + data (then another for mmaps and shared libs from 3GB down): two page tables instead of present three. Hugh -- 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.eu.org/Linux-MM/