Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 20 Dec 2001 21:34:35 +0100 From: Corinna Vinschen To: cygwin Subject: Re: 1.1.3: mmap() returns unusable memory segments: segm fault Message-ID: <20011220213435.X21898@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <20011106140522 DOT H2965 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from lothar@concept.de on Thu, Dec 20, 2001 at 07:40:58PM +0100 On Thu, Dec 20, 2001 at 07:40:58PM +0100, Lothar Linhard wrote: > Hi Corinna, > > With cygwin's mmap.cc I guess, I cannot map more than 197 MB ?! > Is that correct? > > In my application I always call mmap(NULL,size,PROT_RW,...) > here is what I get: > [...] > mmap segment[12]: 0x288d0000...0x2c8cffff = 65536 kB > > Then, when I try to map another 16384 kB or more, I get > "Permission denied". > > I tried cygwin.dll 1.3.4-2 and 1.3.6-6. > Just in case you don't konw or if you want to comment it. Quoted from MSDN: "Windows NT/2000/XP: If the file-mapping object is backed by the paging file (hFile is INVALID_HANDLE_VALUE), the paging file must be large enough to hold the entire mapping. If it is not, MapViewOfFile fails." In other words, you can't mmap() more anonymous memory as your pagefile has room for. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/