From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX"  7-MAY-1991 23:00:12.88
To:	ARISIA::EVERHART
CC:	
Subj:	DECwindows Cookbook 3 of 8

From:	RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.97)
	 id AA17293; Tue, 7 May 91 21:42:34 EDT
Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Tue,  7 MAY 91 17:30:23 PDT
Received: by ucbvax.Berkeley.EDU (5.63/1.42)
	id AA11357; Tue, 7 May 91 17:17:32 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 6 May 91 01:23:17 GMT
From: wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!mic!montagar!fallout!system@louie.udel.edu  (T-H-E John Wisniewski?!?)
Organization: DECUS DFWLug BBS - Dallas, TX
Subject: DECwindows Cookbook 3 of 8
Message-Id: <5119@fallout.uucp>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

+-+-+-+ Beginning of part 3 +-+-+-+
X(          *FILEVIEW / SYS$SYSROOT:[VUE$LIBRARY] ) h
X300 -31200 M
X(          *DISABLING OPCOM MESSAGES FROM DECWINDOWS) h
X300 -33050 M
X300 -35050 M
Xn 1.500 o f
X(Chapter 3) h
X300 -36600 M
Xn 0.667 o f
X(DECWINDOWS SYSTEM CONTROLS) h
X300 -38000 M
X(         *DECW$LOGIN_BACKGROUND) h
X300 -39400 M
X(         *DECWINDOW FONT CONTROLS) h
X300 -40800 M
X(         *DECWINDOW POINTER CONTROLS) h
X300 -42200 M
X(         *DECWINDOWS SESSION MGR DEVICE TWAx: \(MESSAGE BOX\)             ) h
X300 -43600 M
X(         *DECWINDOWS APPLICATION FOCUS CONTROL) h
X300 -45450 M
X300 -47450 M
X300 -49450 M
Xn 1.500 o f
X(   Chapter 4) h
X300 -51000 M
Xn 0.667 o f
X(DECTERM CONTROLS) h
X300 -52400 M
X(          *DECTERMS detached processes) h
X300 -53800 M
X(          *DECterm ESC/OSC control sequences) h
X300 -55050 M
X300 -56250 M
X300 -57450 M
X300 -58800 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 6 6
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X300 -3650 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1800 o f
X(Chapter 1 DECWINDOWS TUNING) h
X300 -5800 M
X300 -7200 M
Xn 0.667 o f
X(DECnet PI) h
X(PELINE QUOTA) h
X300 -8600 M
X300 -10000 M
X(DECwindows default under VMS and from VT1300 Xwindow terminal is to use ) h
X300 -11400 M
X(the DECnet protocol as transport mechanism for the X Window protocol.  ) h
X300 -12800 M
X300 -14200 M
X(\(Note: the VT1000 and 1200 use LAT as an X transport!\)) h
X300 -15600 M
X300 -17000 M
V(Using DECnet, the Xclient \(computer\) sends the graphic display information)
X h
X300 -18400 M
X(\(using the X protocol\) to the Xserver \(Graphic display\).  ) h
X300 -19800 M
X300 -21200 M
V(The Xclient to Xserver delivery needs adequate buffer space to support incomin
Xg) h
X300 -22600 M
X(and outgoing traffic or display/paint hesitation will be experianced.) h
X300 -24000 M
X300 -25400 M
V(In a standalone workstation, the traffic is more incoming with graphic display
Xs) h
X300 -26800 M
X(forwarded to the local DECwindow display.  ) h
X300 -28200 M
X300 -29600 M
X(In a networked VMS Xclient, remote Xwindow access from other nodes may) h
X300 -31000 M
X(reverse the ratio to incoming to outgoing traffic.) h
X300 -32400 M
X300 -33800 M
X(DECnet uses the EXECUTOR PIPELINE QUOTA, adjusted under NCP to ) h
X300 -35200 M
X(specific the number of bytes that may be used in nonpaged pool for ) h
X300 -36600 M
X(transmission over all logical links.  ) h
X300 -38000 M
X300 -39400 M
X(This number of bytes may be used for multibuffering \(incoming and outgoing) h
X300 -40800 M
X(DECnet traffic\).) h
X300 -42200 M
X300 -43600 M
X(The command structure to change the DECnet pipeline quota is as follows) h
X300 -45000 M
X300 -46400 M
X300 -47800 M
X($MCR NCP) h
X300 -49200 M
X(NCP> SET EXECUTIVE PIPELINE QUOTA x) h
X300 -50600 M
X(NCP> DEFINE EXECUTIVE PIPELINE QUOTA x) h
X300 -52000 M
X(NCP> EXIT) h
X300 -53400 M
X300 -54800 M
X300 -56200 M
X(Be sure to perform both the SET and the DEFINE so the change is ) h
X300 -57600 M
X(in both the volatile and permanent DECnet database.) h
X300 -59000 M
X300 -60400 M
X300 -61800 M
X300 -63200 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 7 7
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(DECnet PIPELINE QUOTA  \(cont\)) h
X300 -2600 M
X300 -4000 M
X(Recommended DECnet Pipeline quota) h
X300 -5400 M
X300 -6800 M
V(VMS DEFAULTS FOR DECWINDOWS                                     = 10000 \(byte
Xs\)) h
X300 -8200 M
V(VMS STANDALONE WORKSTATIONS                                    = 25000 \(bytes
X\)) h
X300 -9600 M
X(VMS REMOTE DECWINDOWS ACCESS WORKSTATIONS  = 25000 \(bytes\)) h
X300 -11000 M
V(VMS MULTI SERVER CLIENT                                                  = 320
X00 \(bytes\)) h
X300 -12400 M
X300 -13800 M
X300 -15200 M
X(VMS multi server DECwindow clients \(such as VAXes that have no DECwindow) h
X300 -16600 M
X(display\) may service more than one DECwindow server.  Enough DECnet) h
X300 -18000 M
X(Pipeline quota must be available to support the DECwindow sessions and) h
X300 -19400 M
X(the DECnet logical links that VMS establishes.) h
X300 -20800 M
X300 -22200 M
V(Don't be tempted to raise this number to the 65000 limit for PIPELINE quota.
X  The) h
X300 -23600 M
V(Xwindow protocol will only use about 25000\25532000 bytes and you'll be wastin
Xg) h
X300 -25000 M
X(valuable memory available in pool.) h
X300 -26400 M
X300 -27800 M
V(The net gain to your DECwindows is faster repaint times, less stuttering \(par
Xtial) h
X300 -29200 M
V(paint \255 pause \255 finish\) and less CPU overhead to transport DECwindow pr
Xotocols ) h
X300 -30600 M
X(to your DECwindows clients \(both local and remote displays using DECnet) h
X300 -32000 M
X(as a transport\).) h
X300 -33400 M
X300 -34800 M
X300 -36200 M
X/Times-Roman-ISOLatin1 $
X/Times-Roman & P
X/Times-Roman-ISOLatin1 F 1200 o f
X(SYSGEN PARAMETERS FOR DECWINDOWS) h
X300 -38200 M
X300 -39600 M
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(General rules for tuning DECwindow environments are all memory related.) h
X300 -41000 M
X300 -42400 M
V(An under\255memory configured VAXstation will produce a sluggish, almost unusa
Xble) h
X300 -43800 M
V(user interface.  If there is  8 to 16MB of memory on the VAX system, performan
Xce) h
X300 -45200 M
V(improves dramatically, but over time \(if many processes are created and destr
Xoyed\)) h
X300 -46600 M
V(memory may become allocated to  processes that are dormant or worse not using)
X h
X300 -48000 M
X(all the memory that's been allocated to the process.) h
X300 -49400 M
X300 -50800 M
X(General memory reclamation can be encouraged by adjusting  LONGWAIT and) h
X300 -52200 M
X(other related SYSGEN parameters, but under DECwindows V 1.0 \(VMS 5.0\) to) h
X300 -53600 M
V(V2.0 \(VMS 5.4\) there is no truly proactive memory reclamation activity for)
X h
X300 -55000 M
X(dormant processes.) h
X300 -56400 M
X300 -57800 M
V(By keeping the number of processes low, shutting down processes that are not)
X h
X300 -59200 M
X(being used, and by limiting the amount of memory consumed by a process,) h
X300 -60600 M
X(memory reclamation can be simulated at a useful level.  ) h
X300 -62000 M
X300 -63400 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 8 8
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X300 -2600 M
X/Times-Roman-ISOLatin1 $
X/Times-Roman & P
X/Times-Roman-ISOLatin1 F 1200 o f
X(SYSGEN PARAMETERS FOR DECWINDOWS  \(cont\)) h
X300 -4600 M
X300 -6000 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
V(The cost for this memory activity is trivial CPU overhead, moving pages from )
X h
X300 -7400 M
X(Window \(process\) working sets to the Memory Freelist.   ) h
X300 -8800 M
X300 -10200 M
X(The benefit is that having enough memory to accept new processes or grow) h
X300 -11600 M
X(existing ones, makes DECwindows run more responsive at a human level.) h
X300 -13000 M
X300 -14400 M
X(Future version of VMS may perform this function automatically, today) h
X300 -15800 M
X(we can simulated some functionality with a combination of SYSGEN and ) h
X300 -17200 M
X(Authorize .) h
X300 -18600 M
X300 -20000 M
X300 -21400 M
X300 -22800 M
X300 -24200 M
X( SYSGEN PARAMETERS FOR DECWINDOWS) h
X300 -25600 M
X300 -27000 M
X300 -28400 M
X(The following is an example SYS$SYSTEM:MODPARAMS.DAT for a standalone) h
X300 -29800 M
X(VAXstation 3100.  ) h
X300 -31200 M
X300 -32600 M
V(You should take great care in tuning a system, and match the best tuning with
X the) h
X300 -34000 M
V(primary application.  Only after the requirements of the primary application h
Xave) h
X300 -35400 M
X(been met, dole out the rest of the computer resources.) h
X300 -36800 M
X300 -38200 M
X(Please consider this as a STARTING POINT for your tuning activities,) h
X300 -39600 M
X(it is by no means to be considered as the ultimate DECwindows tuning) h
X300 -41000 M
X(mix.) h
X300 -42400 M
X( ) h
X300 -43800 M
X300 -45200 M
X6060 -45200 M
X(General Rules:) h
X300 -47200 M
X6060 -47200 M
X(Always use @SYS$UPDATE:AUTOGEN.COM to modify the system.) h
X300 -49200 M
X6060 -49200 M
X(Tune for your primary application first.) h
X29100 -49200 M
X300 -51200 M
X6060 -51200 M
X(Window activation may not be the best measure of performance.) h
X300 -53050 M
X300 -55000 M
X300 -56400 M
X300 -57800 M
X(The relevant SYSGEN parameters are noted and commented.) h
X300 -59050 M
X300 -60850 M
X300 -62650 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 9 9
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1050 M
X300 -3000 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X( SYSGEN PARAMETERS FOR DECWINDOWS  \(cont\)) h
X300 -4400 M
X(                SYS$SYSTEM:MODPARMS.DAT) h
X300 -5650 M
X300 -7450 M
X/Courier-ISOLatin1 $
X/Courier & P
X/Courier-ISOLatin1 F 1000 o f
V(!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)
X h
X300 -9250 M
X(! SYS$SYSDEVICE:[SYS0.SYSEXE]MODPARAMS.DAT) h
X300 -11050 M
X(! EXAMPLE MODPARAMS.DAT VAXSTATION 3100 16MB of memory) h
X300 -12250 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
V255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255
V\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\25
X5\255\255\255\255\255) h
X(\255\255\255\255\255\255\255\255\255\255\255\255) h
X300 -13450 M
X(!) h
X300 -14650 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255MODPARAMS
X.DAT DECWINDOWS WORKSTATION) h
X300 -15850 M
X(SCSSYSTEMID        =3213) h
X300 -17050 M
X(SCSNODE            ="MYNODE") h
X300 -18250 M
X(VAXCLUSTER         =0    !is this a VAXcluster member 0=no 1=yes) h
X300 -19450 M
X(!) h
X300 -20650 M
X300 -21850 M
X300 -23050 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255General V
XMS System parameters) h
X300 -24250 M
X(DUMPSTYLE          =0    !Put system dump in the pagefile) h
X300 -25450 M
X(SAVEDUMP           =1    !0= take a dump/1=don't take a system dump) h
X300 -26650 M
X(MIN_SYSMWCNT       =2400 !system workingset size) h
X300 -27850 M
X(MIN_PAGEFILE       =60000!0= don't change size/x=size of pagefile in blocks) h
X300 -29050 M
X(SWAPFILE           =15000!0= don't change size/x=size of swapfile in blocks) h
X300 -30250 M
X(MIN_MAXPROCESSCNT  =50   !maximum process on the system ) h
X300 -31450 M
X(MIN_BALSETCNT      =52   !number of processes slots) h
X300 -32650 M
X(MIN_WSMAX          =19000!Largest working set allowed) h
X300 -33850 M
X(!QUANTUM=20              !Default VMS quantum for VAXstation) h
X300 -35050 M
X(QUANTUM=14               !Best >5 window response) h
X300 -36250 M
X(!QUANTUM=12              !Best 5\25510 windows response) h
X300 -37450 M
X(!QUANTUM=8               !Best 10+ window response \(for each window\)) h
X300 -38650 M
X(WINDOW_SYSTEM=1       !VWS=0 DECwindows=1) h
X300 -39850 M
X300 -41050 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255MEMORY PARAMS) h
X300 -42250 M
X(MIN_GBLPAGES=45000    ) h
X300 -43450 M
X(MIN_GBLSECTIONS=400) h
X300 -44650 M
X(MIN_GBLPAGFIL=20000) h
X300 -45850 M
X(MIN_SRPCOUNT=1024     !Small request packets of memory) h
X300 -47050 M
X(MIN_SRPCOUNTV=1000    !) h
X300 -48250 M
X(MIN_IRPCOUNT=200      !Intermediate request packets of memory) h
X300 -49450 M
X(MIN_IRPCOUNTV=250     !) h
X300 -50650 M
X(MIN_LRPCOUNT=25       !Large request packets of memory) h
X300 -51850 M
X(MIN_NPAGEDYN=800096   !nonpaged dynamic memory  note:this is for 16MB) h
X300 -53050 M
X(MIN_PAGEDYN =804448   !paged dynamic memory     note:this is for 16MB ) h
X300 -54250 M
X300 -55450 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255Make Working Set Adjustment more Agressive) h
X300 -56650 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255This can have adverse effects on compute bound) h
X300 -57850 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255Workstation jobs \255\255 Measure the memory use.) h
X300 -59050 M
X(PFRATH=80              ) h
X300 -60250 M
X(PFRATL=1) h
X300 -61450 M
X(LONGWAIT=10) h
X300 -62650 M
X(WSINC=100) h
X300 -63850 M
X(WSDEC=30) h
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 10 10
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1050 M
X300 -2250 M
X300 -3600 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X( SYSGEN PARAMETERS FOR DECWINDOWS  \(cont\)) h
X300 -5000 M
X(                SYS$SYSTEM:MODPARMS.DAT) h
X300 -6250 M
X300 -7450 M
X300 -8650 M
X/Courier-ISOLatin1 $
X/Courier & P
X/Courier-ISOLatin1 F 1000 o f
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255\255Process related values for DECwindows) h
X300 -9850 M
X(MIN_VIRTUALPAGECNT=20000) h
X300 -11050 M
X(MIN_MAXBUF=4096) h
X300 -12250 M
X(MIN_PQL_DPGFLQUOTA=5000) h
X300 -13450 M
X(!MIN_LONGWAIT=310) h
X300 -14650 M
X(MIN_SWPOUTPGCNT=500) h
X300 -15850 M
X(MIN_FREELIM=40) h
X300 -17050 M
X(MIN_PQL_MASTLM=100) h
X300 -18250 M
X(MIN_PQL_MBIOLM=40) h
X300 -19450 M
X(MIN_PQL_MDIOLM=40) h
X300 -20650 M
X(MIN_GBLPAGFIL=6024) h
X300 -21850 M
X(MIN_PQL_MPRCLM=8) h
X300 -23050 M
X(MIN_PQL_MFILLM=8) h
X300 -24250 M
X(MIN_PQL_MBYTLM=32768) h
X300 -25450 M
X(MIN_PQL_MWSQUOTA=60) h
X300 -26650 M
X(MIN_PQL_MWSDEF=60) h
X300 -27850 M
X(MIN_PQL_DWSEXTENT=500) h
X300 -29050 M
X300 -30250 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255RdB parameters) h
X300 -31450 M
X(MIN_CHANNELCNT=256) h
X300 -32650 M
X(MIN_LOCKIDTBL=325) h
X300 -33850 M
X(MIN_RESHASHTBL=512) h
X300 -35050 M
X(MIN_PQL_DBYTLM=22000) h
X300 -36250 M
X(MIN_LOCKIDTBL_MAX = 2048 ) h
X300 -37450 M
X300 -38650 M
V(!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
X255\255\255\255CDD/PLUS parameters) h
X300 -39850 M
X(!MIN_NPAGEDYN=900096    !nonpaged dynamic memory) h
X300 -41050 M
X(!MIN_PAGEDYN =904448    !paged dynamic memory ) h
X300 -42250 M
X300 -43450 M
X300 -44650 M
X300 -45850 M
X300 -47050 M
X300 -48400 M
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(After SYS$SYSTEM:MODPARAMS.DAT has been created, you can invoke) h
X300 -49800 M
X(AUTOGEN to change the SYSGEN parameters and tune the workstation:) h
X300 -51200 M
X300 -52600 M
X($@SYS$UPDATE:AUTOGEN GETDATA REBOOT NOFEEDBACK) h
X300 -54000 M
X300 -55400 M
X(This will tune and reboot the workstation.) h
X300 -56800 M
-+-+-+-+-+ End of part 3 +-+-+-+-+-

