delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/30/10:12:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Wed, 30 Jun 2004 16:11:43 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin Memory Allocation and heap_chunk_in_mb
Message-ID: <20040630141143.GV19325@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0406301444280 DOT 2112 AT ws3-mirp DOT geol DOT ucl DOT ac DOT uk>
Mime-Version: 1.0
In-Reply-To: <Pine.CYG.4.58.0406301444280.2112@ws3-mirp.geol.ucl.ac.uk>
User-Agent: Mutt/1.4.2i

On Jun 30 14:54, Dan Hatton wrote:
> 
> I'm using CYGWIN_NT-5.1, under XP Pro.
> 
> I've set my heap_chunk_in_mb registry key to a very large value (10240
> decimal,) because I'm doing some RAM-hungry numerical calculations.
> 
> I have enough space to do this (Control Panel->System reports 12 GB of
> virtual memory allocated.)
> 
> However, the max_memory program at
> <http://www.cygwin.com/ml/cygwin/2003-02/msg00234.html> still reports
> only 1.5 GB available.  Sure enough, my program dies with an "out of
> memory" error at 1.25 GB (the 0.25 GB discrepancy is about right for
> the amount of RAM other processes are using.)
> 
> Anyone got any ideas what's happening, please?

The virtual memory available to a process is 2GB under NT.  I see two
possible workarounds:

- There's a way to start NT with a "/3gb" switch from boot.ini which
  allows to get 3GB of virtual memory per process.  Dunno if that's
  available on XP, perhaps the switch is only supported in server
  versions of NT.

- Use the AWE (Address Windowing Extension) functions available since W2K.
  You have to do memory mapping by yourself as necessary.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019