Mail Archives: djgpp/2000/12/05/10:29:08
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 -