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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3F42419A.6050503@x-ray.at> Date: Tue, 19 Aug 2003 17:26:18 +0200 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.4a) Gecko/20030315 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: finding out how much memory is available with malloc, gcc, cygwin References: <20030818215453 DOT 69513 DOT qmail AT web40808 DOT mail DOT yahoo DOT com> In-Reply-To: <20030818215453.69513.qmail@web40808.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Jim Holder schrieb: > A program similar to the one listed below works for me on Linux but not under > Cygwin. The idea is to find out how memory I can allocate on the machine. The > Cygwin version keeps going (past 700MB), reporting that it has allocated more > memory than the machine has. What am I doing wrong? Thanks. Windows uses Virtual Memory, same as linux. That's the physical ram, plus the swap space. (various swapfiles per drive. on linux it's a seperate partition) So there's no error on your side. You can allocate that much memory on Windows, but it's probably quite slow to use it past the physical RAM. On both systems. Typical factor 1000 times slower. -- Reini Urban -- 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/