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: Fri, 21 Dec 2001 21:55:23 +0100 (W. Europe Standard Time) From: Lothar Linhard To: Corinna Vinschen cc: =?iso-8859-1?Q?Heinz_Br=FCderlin?= Subject: Re: 1.1.3: mmap() returns unusable memory segments: segm fault In-Reply-To: Message-ID: X-X-Sender: lld AT star DOT concept DOT de MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Hi Corinna, please ignore my prev message. After adding another 500MB swap space on my NT4.0, it worked (don't know why my old swap settings min=150MB max=500MB weren't enough for my application that mmaps ~390MB total). I detected another problem with mmap from real files (above, I used MAP_ANON) - now I get crashes where it worked before. I'll recontact you when I can be more specific. For now: Merry Christmas and all the best for the new Year. Lothar. On Thu, 20 Dec 2001, 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[0]: 0x202d0000...0x202dffff = 64 kB > mmap segment[1]: 0x202e0000...0x202effff = 64 kB > mmap segment[2]: 0x202f0000...0x2030ffff = 128 kB > mmap segment[3]: 0x20310000...0x2034ffff = 256 kB > mmap segment[4]: 0x20350000...0x203cffff = 512 kB > mmap segment[5]: 0x209d0000...0x20acffff = 1024 kB > mmap segment[6]: 0x20ad0000...0x20ccffff = 2048 kB > mmap segment[7]: 0x20cd0000...0x210cffff = 4096 kB > mmap segment[8]: 0x210d0000...0x218cffff = 8192 kB > mmap segment[9]: 0x218d0000...0x228cffff = 16384 kB > mmap segment[10]: 0x228d0000...0x248cffff = 32768 kB > mmap segment[11]: 0x248d0000...0x288cffff = 65536 kB > 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. > > Lothar. > ======================================================================== > Lothar Linhard | Tel.: +49-761-47094-12 > Concept Engineering, Bötzinger Str. 29, | Fax.: +49-761-47094-29 > 79111 Freiburg, Germany. | Email: lothar AT concept DOT de > ======================================================================== > -- 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/