Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 6 Apr 2001 17:21:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 6 Apr 2001 17:21:14 -0400 Received: from bacchus.veritas.com ([204.177.156.37]:57565 "EHLO bacchus-int.veritas.com") by vger.kernel.org with ESMTP id ; Fri, 6 Apr 2001 17:21:01 -0400 Date: Fri, 6 Apr 2001 22:21:14 +0100 (BST) From: Hugh Dickins To: Wayne Whitney cc: Mark Hahn , majer@endeca.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: memory allocation problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/