delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/05/11:30:25

Message-ID: <B5E044AF4430D311B24D0060089CD8B101F018C3@hydmail01.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: how can I limit the amount of RAM available to DJGPP-based pr
ogram
Date: Tue, 5 Dec 2000 19:48:09 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

On Tuesday, December 05, 2000 6:30 PM, Vlad Harchev [SMTP:hvv AT hippo DOT ru]
wrote:
| 
|  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
| uses CWSDPMI
| and I would like not to switch to any other DPMI host if possible.

Here's a quick solution I can think of... Perhaps there may be a simpler
one, but....

Write a TSR to hook INT 15h/88H and make it return some small
number in the AH when someone requests this call. But this method
will work only in raw mode (without HIMEM/EMM386).

|  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).

I don't think it would be useful to everyone, except those who work mostly
at the system level, and perhaps Charles himself for his testing work ;-).

--------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. 
If you received this in error, please contact the sender and delete the materialfrom any computer.
--------------------------------------------------------------------------------

- Raw text -


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