OT: Restrict Memory Usage of Win32 Process?

Ben Scott dragonhawk at gmail.com
Mon Jun 2 16:40:15 EDT 2008


On Mon, Jun 2, 2008 at 4:04 PM, Thomas Charron <twaffle at gmail.com> wrote:
>  The  SetProcessWorkingSetSize and SetProcessWorkingSetSizeEx Win32 API calls.

  Does that actually limit the amount of memory a process can use, or
just the working set (pages in RAM)?  The docs I found via Google seem
to imply the later.  If so, a process could keep allocating more
memory, it would just have its pages swapped to disk ("page file")
sooner than otherwise.  In theory, that might still lead to virtual
memory exhaustion.  Or is my understanding wrong?

http://msdn.microsoft.com/en-us/library/ms686237(VS.85).aspx

-- Ben


More information about the gnhlug-discuss mailing list