Mail Archives: djgpp/2000/12/05/09:00:40
On Tue, 5 Dec 2000, Vlad Harchev 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.
Disable paging in CWSDPMI by running CWSPARAM and pointing the swap file
to a non-existent drive. Then spawn your program from another DJGPP
program which allocates some of the memory and locks it. Compute the
amount of memory to allocate in the parent program so that what's left is
the amount of RAM for which you want to test your program.
> 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 wouldn't expect many users to try to limit the amount of RAM. I don't
think I ever saw such a question posted here; it certainly isn't a
frequent one. So it definitely doesn't belong to the FAQ.
- Raw text -