www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/05/08:29:54

Date: Tue, 5 Dec 2000 16:59:50 +0400 (SAMT)
From: Vlad Harchev <hvv AT hippo DOT ru>
X-Sender: hvv AT localhost DOT localdomain
To: djgpp AT delorie DOT com
Subject: how can I limit the amount of RAM available to DJGPP-based program
Message-ID: <Pine.LNX.4.10.10012051644260.1101-100000@localhost.localdomain>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

 Hi, 

 I need to test how one program (that uses DJGPP environment) will work when
certain amount of RAM is available (not some total amount of virtual memory,
but amount of RAM available). And that amount of RAM is fewer than PC I'm
going to test it on has. That program needs to operate without using swap
file. That program can't run under Win*, so I don't have an option of writing
custom .pif file that limits memory to that amount. That program uses CWSDPMI
and I would like not to switch to any other DPMI host if possible.
 I use dos that comes with Win95 OSR2. Can himem.sys be used to control
amount of memory used by DPMI? Or should I just hack CWSDPMI and rebuild it?
May be somebody can suggest a patch to CWSDPMI (or at least function
name/filename to hack in)?

 And IMO it seems that limiting amount of RAM is a general purpose task, so
support for it can be added to cwsparam.exe/cwsdpmi.exe (or solution added to
FAQ).
 
 Thank you in advance.

 Best regards,
  -Vlad

- Raw text -


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