Re: working set and console applications



"Matt" wrote:

I've written a console based service that runs on windows 2003 servers.
When the service is minimized or if a user logs into and then out of
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
logons is a known problem that should be fixed in WS03 SP2:

http://support.microsoft.com/kb/905865/en-us

I think SP2 also has some changes to throttle modified page writer
disk IO when there is enough available physical memory. If most of the
modified pages in your working set are pagefile-backed, this can
significantly reduce performance impact of trimming on minimize.

--
This posting is provided "AS IS" with no warranties, and confers no
rights.


.



Relevant Pages

  • Re: working set and console applications
    ... I started with Msgina.dll 5.2.3790.1830 and this has the working set issue ... for both console and windows applications when using remote desktop. ... SP1 but broken again in SP2. ... remote desktop, the entire working set of the process is paged to disk. ...
    (microsoft.public.win32.programmer.kernel)
  • 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: 25 MB
    ... mikeb wrote: ... > Minimizing the application will generally trim the working set. ... systematically resolve it. ...
    (microsoft.public.dotnet.languages.csharp)