From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 14 Sep 2000 19:03:06 -0400 (EDT) From: Mark Hahn Subject: Re: Running out of memory in 1 easy step In-Reply-To: <20000914212004.A1304@cistron.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Wichert Akkerman Cc: linux-mm@kvack.org List-ID: > Not likely, there were still a couple hundreds of megabytes free and > the process had allocated about 1.5Gb of data. mmaping 1 to 4096 bytes consumes 8K from your address space: one for the mmaped page, and one (virtual) guard page (unless you use MAP_FIXED, of course.) 4G / 8K is approximately the 458878 you reported. actually, since maps begin at 1G, I would have expected you to run out sooner... regards, mark hahn. -- 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/