Date: Tue, 5 Dec 2000 16:59:50 +0400 (SAMT) From: Vlad Harchev 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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