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

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1252.0. "Restricting working sets" by SK8R::CRITZ (Richard -- KB4N/1) Wed Aug 09 1989 17:39

I'm almost certain I've seen it in this file or its predecessor but search 
won't find it now.  How do I go about reducing the working set for:

a) Fileview and its subprocesses
b) Processes spawned from DECW$LOGIN

There are certain things that I have running that simply don't deserve to be 
allowed to eat as much physical memory as others and I'd like to restrict them
without having to stand on my head and do lots of heavy begging.

T.RTitleUserPersonal
Name
DateLines
1252.1VMS does this all the time, automatically.HSSWS1::DUANESend lawyers, guns & moneyThu Aug 10 1989 13:0025
    There are 3 system parameters which set default working set parameters:
    PQL_DWSDEFAULT, PQL_DWSQUOTA, and PQL_DWSEXTENT.  There are a
    corresponding 3 system parameters which control minimum values for
    process working set parameters: PQL_MWSDEFAULT, PQL_MWSQUOTA, and
    PQL_MWSEXTENT.  DECwindows requires PQL_MWSDEFAULT and PQL_MWSQUOTA be
    set to 60.  Check your values for PQL_DWSDEFAULT and PQL_DWSQUOTA to
    make sure they are not too high.  PQL_MWSEXTENT and PQL_DWSEXTENT
    define minimum and default absolute upper limits on the size of a
    process' working set; these should probably be significantly higher
    than the other two.
    
    VMS has excellent memory management features built into it and these
    features should be allowed to operate.  Reducing the size of a working
    set simply because you think it is too large may induce heavy paging
    which will slow the system down.  It is far better to allow VMS to
    allocate and deallocate memory dynamically based on activity as
    processes come and go, images are activated and run down, than to
    declare "process x should only have y pages allocated to it".  Not only
    is this less work for you, but the system will probably run better.
    
    d
    
    P.S.  If slow performance is a problem, have you tried AUTOGEN
    with feedback?

1252.2SK8R::CRITZRichard -- KB4N/1Thu Aug 10 1989 14:5014
Perhaps I should've been clearer.

I'm quite familiar with the SYSGEN parameters and the way memory management
works.  What I'm looking for is a way to control specifically on a per 
application basis the quotas for stuff that I run out of DECW$LOGIN or 
under FileView.

Does the session manager use my UAF values for creating the DECterm controller 
and FileView or does it use the defaults?

I know my system workload better than the paging dynamics and would prefer to
force paging for a couple of infrequently used, but necessary nonetheless,
applications rather than having to continually suffer with a 100 page freelist.

1252.3DECterm params are hard coded but can be changedHANNAH::MESSENGERBob MessengerFri Aug 11 1989 14:4217
Re: .2

In both DECwindows V1 and DECwindows V2, you can control the working set
parameters used for creating the DECterm controller by defining these logical
names (in LOGIN.COM, I think):

	DECW$DECTERM_CTRL_WSEXTENT	WS extent - defaults to 4000
	DECW$DECTERM_CTRL_WSQUOTA	WS quota - defaults to 650

I looked in the DECterm source code for the hard coded default values, and
since this code was taken from the V1 session manager I think it works the
same way in V1 as well.

				-- Bob



1252.4set work/ext=....FESTER::SPIVAKSat Aug 19 1989 18:099
    Could this also be done by runing an application from a spawned process
    with preset working set quotas?  Something like
    
    $ set work/ext=xxx/lim=xxx... etc
    $ spawn/nowait/in=nl:/out=nl: run sys$system:decw$xxxxx.exe
    
    Am I even close?
    -Marat

1252.5FESTER::SPIVAKSat Aug 19 1989 18:133
    Although you will need privileges to be able to change your own working
    set characteristics...

1252.6$ SET WORKING_SET works for meSEWANE::MASSEYI left my heart in Software Services.Thu Aug 31 1989 15:4613
Re: .5:

>   Although you will need privileges to be able to change your own working
>    set characteristics...

Not the way I see it.  See $ HELP SET WORKING_SET.

BTW, DECW$SYLOGIN.COM is shipped with the following command line in it:

$ set working_set/quota=200

Steve