From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX"  2-SEP-1989 17:27
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Re: VMS v5.1 and my performance problem

Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Sat,  2 SEP 89 11:18:33 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Sat, 2 Sep 89 08:44:48 PDT
Received: by ucbvax.Berkeley.EDU (5.61/1.37)
	id AA16847; Sat, 2 Sep 89 08:37:28 -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: 2 Sep 89 15:24:59 GMT
From: mailrus!sharkey!atanasoff!hascall@husc6.harvard.edu  (John Hascall)
Organization: Iowa State Univ. Computation Center
Subject: Re: VMS v5.1 and my performance problem
Message-Id: <1427@atanasoff.cs.iastate.edu>
References: <216@sunquest.UUCP>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

In article <216@sunquest.UUCP> terry@sunquest.UUCP (Terry Friedrichsen) writes:
 
}While I knew that VMS v5 had no NULL process any longer, I didn't know
}what did happen instead.  A number of respondents pointed out to me that
}SCH$RESCHED is where idle time is accumulated these days, so my high
}RESCHED time was a false lead.  So how do I tell the difference between
}idle time and high scheduler overhead?  Beats me.
 
$! DIY-NULL-PROCESS
$!
$ create NULL.MAR
        .title  NULL
; V5.x pseudo NULL process, 2-SEP-1989, John Hascall
        .psect  DATA,RD,NOWRT,NOEXE
VADDRS: .long   ^x00000000,^x7FFFFFFF
        .psect  CODE,RD,NOWRT,EXE
        .entry  NULL,^M<>
        PUSHAQ  VADDRS
	CALLS   #1,g^SYS$PURGWS     ; clean up our address space
10$:    BRB     10$                 ; spin here
        .end    NULL
$ macro/nodebug NULL
$ link/notrace NULL
$!
$ run /error=nl: /input=nl: /output=nl: -
   /prio=0 /priv=noall /page=2048 /noswap /uic=[1,1] /proc=NULL NULL
$ exit

If you have a multi-processor, you may want to run one for each processor
(be sure to use unique process names [i.e., /proc=NULLn  n=1,2,3,4...]).
John Hascall
ISU Comp Center

