[comp.windows.ms.programmer] Can EMS pages be locked?

sidney@borland.com (Sidney Markowitz) (03/27/91)

I have a DOS app that uses over a megabyte of EMS and at one point
does some heavy access back and forth between two 64k tables that are
in EMS. Running under enhanced mode Windows, if the PIF does not
specify that EMS is locked, then the accesses to those two 64k tables
seems to cause a lot of disk thrashing. Locking the entire EMS
allocated to the program just to keep 128k from thrashing is overkill,
and makes the program hog too much of the system resources.

Does anyone know if there is a way for a DOS app to get Windows to
lock just those pages, or alternatively if there are any parameters to
set in system.ini or somewhere that would lead to better swapping
behavior by the EMS emulator?

 -- sidney markowitz <sidney@borland.com>