X-Spam-Check-By: sourceware.org Date: Fri, 5 Jan 2007 20:23:02 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.0 CVS mmap failure Message-ID: <20070105192302.GD12776@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070105095752 DOT GB28768 AT calimero DOT vinschen DOT de> <20070105182234 DOT GC12776 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 5 12:42, Brian Ford wrote: > On Fri, 5 Jan 2007, Corinna Vinschen wrote: > So, it does indeed look taken. Too bad. > > Actually this shows a problem in the mmap implementation with respect to > > MEM_TOP_DOWN. I think, what mmap should actually do is to create a > > lightweight MAP_RESERVE anonymous mapping of the whole requested mapping > > size, then close it again and then reopen it with the address it got > > in this first try. This would probably ensure that the subsequent two > > mapping will work. > > I don't know what mmap magic Cygwin uses internally to do this, but can't > you just map the big region, then overmap the disk file without the map, > unmap, remap, remap? "overmap"? -v please? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/