Re: 25 MB
From: Julie (julie_at_nospam.com)
Date: 04/20/04
- Next message: Jiachuan Wang [MSFT]: "Re: System.Text.RegularExpressions sintaxis"
- Previous message: RH: "Building a report builder"
- In reply to: mikeb: "Re: 25 MB"
- Next in thread: Thom Little: "Re: 25 MB"
- Reply: Thom Little: "Re: 25 MB"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Jiachuan Wang [MSFT]: "Re: System.Text.RegularExpressions sintaxis"
- Previous message: RH: "Building a report builder"
- In reply to: mikeb: "Re: 25 MB"
- Next in thread: Thom Little: "Re: 25 MB"
- Reply: Thom Little: "Re: 25 MB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|