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

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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Cygwin Memory Allocation and heap_chunk_in_mb
Date: Wed, 30 Jun 2004 15:06:52 +0100
MIME-Version: 1.0
In-Reply-To: <Pine.CYG.4.58.0406301444280.2112@ws3-mirp.geol.ucl.ac.uk>
Message-ID: <NUTMEGHOzyfyz5b6KZm0000060e@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 30 Jun 2004 14:06:52.0640 (UTC) FILETIME=[7E684E00:01C45EAB]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Dan Hatton
> Sent: 30 June 2004 14:55

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


Errm... just checking the obvious, but.... you _are_ using a 64-bit system,
right?

Because no amount of virtual memory can get around the fact that there's
only 4Gb of addresses in the per-process memory space, and 2Gb of those
belong to the kernel.

Of course, even if you are on a 64bit system, cygwin itself isn't 64-bit.
malloc (as used by that test program) returns a 32-bit pointer.  There's no
way of allocating more than 4Gb without malloc having to start returning
duplicate values!

Try adding a line to your boot.ini to allow you to boot with the /3Gb
switch, and see if that gets you an extra gig of memory.  See
http://support.microsoft.com/default.aspx?scid=kb;EN-US;833721 
for details.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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