OT: Restrict Memory Usage of Win32 Process?

Thomas Charron twaffle at gmail.com
Mon Jun 2 17:55:27 EDT 2008


On Mon, Jun 2, 2008 at 4:40 PM, Ben Scott <dragonhawk at gmail.com> wrote:
> 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 ulimit utility can adjust many things, not just limiting the
amount of memory.  Those two function are the equivilant of -l.  What
I wasn't clear about though is this.  No, there is no ulimit utility
for any windows system I've seen.  Even Cygwin doesn't implement a
ulimit emulation.  The concept are mostly nonexistent on a Win32
system.  Ones that do exist are regulated by security profiles.

-- 
-- Thomas


More information about the gnhlug-discuss mailing list