X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <28511180.post@talk.nabble.com> Date: Mon, 10 May 2010 05:54:04 -0700 (PDT) From: kulalking To: cygwin AT cygwin DOT com Subject: changing the VM size in cygwin. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 Hi All,=20 We are running a server on cygwin (on windows 7 , 64 bit , 6 GB RAM ), it used to run fine with Linux environment.=20 It is crashing on cygwin when client access the huge memory. We found on debugging that huge memory allocation causing the crash: _buf =3D new char[array_wid] where array_wid is 1GB. So it is finding difficult to get huge continues memory in cygwin. We tried changing the heap memory using regtool command, regtool -i set /HKLM/Software/Cygwin/heap_chunk_in_mb 4096 regtool -i set /HKCU/Software/Cygwin/heap_chunk_in_mb 4096 we got above information from :=20 http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html=20 After that we tried to get the memory allocation limit, code is given in the same link.=20 We are getting only 1596 MB. Windows machine having more VM size, around 6GB we can see that in process explorer, but cygwin is not transferring that to environment.=20 looking for the help for increase the VM, or any solution/suggestion ? And also we also tried Rebuilding the our application with high stack size, -Wl,--stack,8388608 , didn=E2=80=99t give any hope :( We also tried with ulimit =E2=80=93v option , and we are not able to chang= e the vm size , it says 2 GB is the MAX! --=20 View this message in context: http://old.nabble.com/changing-the-VM-size-in= -cygwin.-tp28511180p28511180.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple