delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/16:59:42

Date: Thu, 12 Aug 1999 10:54:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Legolas10 <legolas10 AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Memory usage question!
In-Reply-To: <19990808112714.07070.00009009@ng-fy1.aol.com>
Message-ID: <Pine.SUN.3.91.990812105345.9373M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 8 Aug 1999, Legolas10 wrote:

> I am using
> DJGPP, and I have 96M RAM.  DJGPP lets me allocate up to about 150Meg. 
> However, my hard drive is 6 gig, and I see no reason I couldn't allocate even
> more, up to 1 gig or so.  How do I do this?  I am using new and delete.  

If you run on Windows (as I suspect you are), then the amount of
virtual memory your programs can use is under Windows control; DJGPP
cannot do anything about it.  Try changing the DPMI memory settings of
the DOS box (through Propert Sheets, under Memory).  Note that for
large settings you need to actually manually type the value into the
dialog box, since the values that Windows lets you choose from are
usually small.

If you don't run on Windows, and if your DPMI server is CWSDPMI, you
need to change the "Maximum number of 4K pages in swap file" parameter
of CWSDPMI by running the cwsparam.exe program; the default is for
128MB.  Do not increase this parameter beyond 65528 (i.e. 256MB, plus
whatever RAM you have physically free, of virtual memory).

Also note that the current version of CWSDPMI has bugs when the amount
of virtual memory approaches 256MB; work is under way to fix those
bugs.

- Raw text -


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