delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/02/18:34:27

Message-Id: <3.0.3.32.19980602183929.006ad4e4@ns.coba.net>
Date: Tue, 02 Jun 1998 18:39:29 -0400
To: djgpp AT delorie DOT com
From: Daniel Delorme <ddelorme AT ns DOT coba DOT net>
Subject: I don't want swapping
Mime-Version: 1.0

hello

I've searched the djgpp mailing list archives and found interesting 
stuff on disabling virtual memory and getting memory information from
the system (_go32_dpmi_get_free_memory_information)

My problem is: I want a way to know when all the physical memory is
used up so I can compress the data I'm working on (random map generation)
and go on processing without having to hear the sweet music of swapping

In DOS mode (using CSWDPMI), I can use _go32_d[..].available_physical_pages
The problem is with Win95 (how suprising) : available_physical_pages never
reaches zero even after the swapping starts.

If you know an alternative solution to prevent swapping, I'd love to hear 
about it !
TIA
Dan42


- Raw text -


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