<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=RT-PROGRAM-LOG</id>
	<title>RT-PROGRAM-LOG - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=RT-PROGRAM-LOG"/>
	<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=RT-PROGRAM-LOG&amp;action=history"/>
	<updated>2026-05-16T09:22:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=RT-PROGRAM-LOG&amp;diff=4278&amp;oldid=prev</id>
		<title>Tingo: created RT-PROGRAM-LOG page</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=RT-PROGRAM-LOG&amp;diff=4278&amp;oldid=prev"/>
		<updated>2017-08-15T12:59:31Z</updated>

		<summary type="html">&lt;p&gt;created RT-PROGRAM-LOG page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; @RT-PROGRAM-LOG &amp;lt;program name&amp;gt;, &amp;lt;report interval&amp;gt;, &amp;lt;interrupts/sample&amp;gt;, &amp;lt;logical device no.&amp;gt; [, &amp;lt;input or output&amp;gt;] [, &amp;lt;logical device no.&amp;gt;] [, &amp;lt;input or output&amp;gt;], &amp;lt;output file&amp;gt;&lt;br /&gt;
Measure resource usage by logging a particular RT program and total system usage. Usage of one or two logical units can also be logged. (see &amp;quot;The Analysis of Resposne Time Problems&amp;quot;, ND Bulletin, December 1980.)&lt;br /&gt;
; &amp;lt;program name&amp;gt; : (default = log only total system usage) the name of the RT program to be measured or its RT description&lt;br /&gt;
; &amp;lt;report interval&amp;gt; : the number of seconds between each report time&lt;br /&gt;
; &amp;lt;interrupts/sample&amp;gt; : the number of output interrupts of the user&amp;#039;s terminal between each sample&lt;br /&gt;
; &amp;lt;logical device no.&amp;gt; : (default = no log, decimal) any existing logical device to be measured. Two devices can be measured at one time.&lt;br /&gt;
; &amp;lt;input or output&amp;gt; : input or output of the logical device (0 = input, 1 = output)&lt;br /&gt;
; &amp;lt;output file&amp;gt; : (default = terminal) destination of report&lt;br /&gt;
&lt;br /&gt;
Rules:&lt;br /&gt;
#Permitted only for users RT and SYSTEM.&lt;br /&gt;
#Sampling is connected to the output interrupt response time of the terminal. If the terminal is of high speed, eg. 9600 baud, a sample on each interrupt would give a considerable system load. The parameter &amp;lt;interrupts/sample&amp;gt; should specify a number which is reasonable in the particular circumstances.&lt;br /&gt;
#The information returned is&lt;br /&gt;
##CPU time used&lt;br /&gt;
##disk channel time for swapping&lt;br /&gt;
##disk channel time for file access&lt;br /&gt;
##the time the disk was reserved, this is the total of swap and file access&lt;br /&gt;
#To terminate the log, press &amp;quot;escape&amp;quot;.&lt;br /&gt;
#The command is not permitted from remote terminals.&lt;br /&gt;
#The command cannot be used in MODE or BATCH jobs.&lt;br /&gt;
&lt;br /&gt;
Eaxmple:&lt;br /&gt;
&lt;br /&gt;
 @RT-PROGRAM-LOG BAK02, 1, 1,,&lt;br /&gt;
 CPU       SWAP      FILES     DISK  PASSIVE IO WAIT&lt;br /&gt;
 00/ 95    00/ 00    00/ 00    00    94      04&lt;br /&gt;
 41/ 98    00/ 00    13/ 13    13    00      60&lt;br /&gt;
 44/ 97    00/ 00    03/ 03    03    00      57&lt;br /&gt;
 63/100    00/ 00    00/ 00    00    00      24&lt;br /&gt;
&lt;br /&gt;
The program BAK02 is logged every second. One sample is taken on every interrupt of terminal 2. The second row shows that CPU was utilized 98% of the time, and BAK02 used 41% of that time. The disk was reserved 13% of the time, all for BAK02 file access. BAK02 was in IO-WAIT 60% of the time. The sum of CPU time, passive time and IO-WAIT is 101% due to rounding inaccuracy. &lt;br /&gt;
&lt;br /&gt;
== Related commands ==&lt;br /&gt;
@[[START-PROGRAM-LOG]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{ND-doc|60.128.03}} (printed February 1983), page 1-172&lt;br /&gt;
&lt;br /&gt;
{{ND-doc|60.174.Q01}}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:System Commands]] [[Category:Real-Time Commands]]&lt;/div&gt;</summary>
		<author><name>Tingo</name></author>
	</entry>
</feed>