delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/19/20:18:45

Date: Mon, 19 Jun 1995 20:28:48 -0300 (EST)
From: "Marcelo Couto (Mac)" <mac AT icmsc DOT sc DOT usp DOT br>
To: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: MALLOCing virtual memory...

Hi all.

I'm new at this list, and I download the last version of DJGPP last week.
I wanted a DOS Extender, like DOS4GW, and DJGPP is a good substitute (or 
not?).

Well, I need to use the 32 bits architeture of 386, that allow virtual 
memory, to make my programs work at maximum capacity. My config was a 486DX2 
16Mb RAM +40Mb SWAPDISK. For test, I MALLOCed 25 Mb, to force use of 
virtual memory on disk. That's ok. MALLOC returned not null. Then I filled
the buffer with 'X', and test if all positions was 'X'.

I known that's a slowly work, but I had to try this before anything. :)

The problem is: it was TOO MUCH slow.
I think the swap between disk and memory used a too small buffer. That's 
any way I can change the size of that swaped memory (something like 1Mb 
swap, at one time) ?? Or that's not possible, and I need to accept this?

Mac
mac AT icmsc DOT sc DOT usp DOT br

PS: Sorry by my (!good) English...

- Raw text -


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