www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/20/02:09:30

Date: Sun, 20 Oct 1996 07:41:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jon Slaughter <lobo AT iamerica DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: Virutal memory problems.
In-Reply-To: <3266620D.448A@iamerica.net>
Message-Id: <Pine.SUN.3.91.961020074010.29425L-100000@is>
Mime-Version: 1.0

On Thu, 17 Oct 1996, Jon Slaughter wrote:

> I'm working on a small program that loads a elevation map and scales it
> down... original is 18 megs, I have 20. When it gets amost half way it
> starts working the disk and becomes about 10000 times slower :( I'm
> assuming that this is because of virtual memory... but is it supose to

Check out the method your program uses to allocate memory.  If it 
allocates all the 18 MB at once, the DJGPP library allocation functions 
round that up to the next power of 2, which means you ask for 32 MB.  If 
you can change the program so it asks for smaller chunks of memory, your 
program might stop paging.

- Raw text -


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