[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::nt-developers

Title:MS Windows NT Developers
Notice:See note 1222 for MS bug reporting info
Moderator:TARKIN::LINEIBER
Created:Mon Nov 11 1991
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3247
Total number of notes:15633

3152.0. "Anyway to stop WNT from trimming Working Sets?" by EPS::DEANE () Fri Dec 20 1996 15:17

T.RTitleUserPersonal
Name
DateLines
3152.1Did you do any homework already?VAXCPU::michaudJeff Michaud - ObjectBrokerFri Dec 20 1996 18:265
3152.2If you already know the answer...EPS::DEANEMon Dec 23 1996 14:097
3152.3why don't you spend time looking instead of asking us to do the leg work for you?VAXCPU::michaudJeff Michaud - ObjectBrokerMon Dec 23 1996 15:3838
3152.4working set trimmingBEET::EAGANAmong the fashion impaired...Mon Dec 23 1996 16:2723
3152.5decwet::windows-nt, note 5465.1CFSCTC::HUSTONSteve HustonMon Dec 23 1996 16:594
3152.6VAXCPU::michaudJeff Michaud - ObjectBrokerMon Dec 23 1996 18:3332
3152.7EPS::SLATERMarc, DTN 381-2445Fri Dec 27 1996 17:0929
3152.8Try SetProcessWorkingSetSizeDECWET::MVBMonty VanderBiltMon Jan 27 1997 10:3223
Try calling SetProcessWorkingSetSize(). It's documented in MSDN. The
arglist has a process handle so you can use this on another process
given a suitably priviledged account. If you set the
MinimumWorkingSetSize to a large value you can probably get the
behaviour you want. I haven't tested this.

BOOL
WINAPI
SetProcessWorkingSetSize(
    HANDLE hProcess,
    DWORD dwMinimumWorkingSetSize,
    DWORD dwMaximumWorkingSetSize
    )

dwMinimumWorkingSetSize - Supplies the minimum working set size for the
specified process. The virtual memory manager will attempt to keep at
least this much memory resident in the process whenever the process is
active. 


I also checked on the "link /ws:aggressive" flag but "aggressive" is
the only option here. I was hoping there would be "/ws:wimpy". :-).