Messages in this thread |  | | Date | Fri, 6 Apr 2001 22:21:14 +0100 (BST) | | From | Hugh Dickins <> | | Subject | Re: memory allocation problems |
| |
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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |