Re: 25 MB

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Julie (julie_at_nospam.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 16:29:08 -0700

mikeb wrote:
>
> Thom Little wrote:
>
> > Interesting ... and since I have 1GB of memory there is no contention and
> > the trimming never occurred.
> >
> > Is there a way to induce the working set trimming after initialization in an
> > environment where there is no external page contention?
> >
>
> Minimizing the application will generally trim the working set.
>
> See the docs for the Win32 SetProcessWorkingSetsize() API for how to do
> this from your program. I don't think there's a framework method to do
> this, you'll probably have to P/Invoke the Win32 API.
>
> If you end up actually doing this, test well to make sure it doesn't
> cause any unintended slowdowns.
>
> --
> mikeb

My recommendation is to not fiddle w/ it unless there is a specific need. To
wit, all that I've seen is that the OP looked in the task manager and saw
25MB. That is not justification to mess w/ working set, profiling, etc.

What needs to be asked first is 'what problem needs to be resolved', and then
systematically resolve it.



Relevant Pages

  • Re: 25 MB
    ... Minimizing the application will generally trim the working set. ... See the docs for the Win32 SetProcessWorkingSetsize() API for how to do ... you'll probably have to P/Invoke the Win32 API. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: working set and console applications
    ... remote desktop, the entire working set of the process is paged to disk. ... Are you on RTM, SP1 or SP2? ... Working set trimming during remote ...
    (microsoft.public.win32.programmer.kernel)