X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <48029C5F.8B866C75@dessent.net> Date: Sun, 13 Apr 2008 16:50:55 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: segmentation faults and memory problems References: <60089 DOT 129 DOT 175 DOT 33 DOT 73 DOT 1208106506 DOT squirrel AT webmail1 DOT u-psud DOT fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Eric Tea wrote: > I work on two computers, running under > windows XP and windows XP64. The former have 1Gb of RAM and the latter > 4Gb. > Increasing the stack size and modifying the > "heap_chunk_in_mb" value dont change anything to my segmentation > fault. > Plus "max_memory" always reply 1536Mb for both > computers and for any "heap_chunk_in_mb" value.... (so i think i > am not RAM limitted It doesn't matter how much physical memory you have. 32 bit Windows (and note that when using Cygwin with XP x64 you are still using 32 bit mode, WOW64, as there is no x64 Cygwin) partitions the virtual memory space into 2GB for kernel mode and 2GB for user mode. So you start out with a hard limit of 2GB of virtual address space, from which is subtracted the virtual memory of all DLLs, mappings, the stack, etc. in the process. For a single allocation, a limit of 1.5 GB sounds about right, given that the space is greatly fragmented by all those DLLs. There is a /3GB switch you can add to boot.ini which changes the partitioning to 3GB user mode and 1GB kernel mode. However, in order for apps to take advantage of this they have to be recompiled with a "/3GB aware" flag set in their PE header. And I'm not even sure if Cygwin can work in this mode; check the archives. Brian -- 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/