From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JL1EL-0001W5-74 for qemu-devel@nongnu.org; Fri, 01 Feb 2008 14:07:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JL1EJ-0001TW-K1 for qemu-devel@nongnu.org; Fri, 01 Feb 2008 14:07:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL1EJ-0001TP-Ed for qemu-devel@nongnu.org; Fri, 01 Feb 2008 14:07:15 -0500 Received: from mail2.shareable.org ([80.68.89.115]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JL1EI-0004Sy-VX for qemu-devel@nongnu.org; Fri, 01 Feb 2008 14:07:15 -0500 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1JKzng-0004DC-PA for qemu-devel@nongnu.org; Fri, 01 Feb 2008 17:35:40 +0000 Date: Fri, 1 Feb 2008 17:35:40 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH 1/6] Use correct types to enable > 2G support Message-ID: <20080201173540.GA14032@shareable.org> References: <1201818980-27534-1-git-send-email-aliguori@us.ibm.com> <1201818980-27534-2-git-send-email-aliguori@us.ibm.com> <47A2F3C7.6060409@bellard.org> <47A32E40.3000204@us.ibm.com> <47A33721.4020600@qumranet.com> <47A308DB.3040204@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47A308DB.3040204@gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Robert William Fuller wrote: > Linux doesn't commit mapped memory until it's faulted. As for other > platforms, who knows? Correction: most Linux installations don't commit mapped memory until it's faulted. A few do, as a matter of policy (it depends on kernel settings), so that applications won't randomly crash when too much memory is faulted, but will return 0 from malloc() earlier. For those few systems, use MAP_NORESERVE if you still need to allocate the address space. -- Jamie