Date: Thu, 23 May 2002 19:15:06 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Yeryomin, Alex" cc: "'djgpp AT delorie DOT com'" Subject: Re: Memory limit in 64 Mb under DOS? In-Reply-To: <35A52C81CAE0D51198E20090276A816F1C4DC9@sail.excelsior> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 23 May 2002, Yeryomin, Alex wrote: > Hi! Is there anybody? Yes, plenty ;-) > We use DJGPP-compiled program under "pure" DOS on compure equipped more than > 64 Mb of memory, as usual 128 and ever more till 512 Mb. The program works > under stress memory-usage conditions, so it needs many memory and all memory > blocks locked at physical memory. But the program cannot allocate physical > memory more then 64 Mb. Why? When we run testing program under Windows NT, > it shows that we can use 400 Mb (exactly installed at a computer). But under > DOS it always detects only 64 Mb! See the testing program below. Total > number of physical pages is always ~16000, and each peage is 4096 bytes. Run go32-v2 with no arguments, and tell what it says. In general, problems with memory allocations are discussed in Chapter 15 of the DJGPP FAQ list. You may wish to read that chapter, perhaps it already has a solution for your problems.