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

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how can I limit the amount of RAM available to DJGPP-based program
Date: 5 Dec 2000 14:04:36 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 28
Message-ID: <90islk$7un$1@antares.lu.erisoft.se>
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10012051644260 DOT 1101-100000 AT localhost DOT localdomain>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Vlad Harchev (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 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.

For no virtual memmory you can use CWSDPR0.

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

For limiting amount of RAM create a (if you use a sensible RAMDISK) or
several (if you are using WINDOZE RAMDISK) RAMDISK(s) to gobble up
memory.


Right,

						MartinS

- Raw text -


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