delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <rurban AT x-ray DOT at> |
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> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |