Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jerome H. Fine" <everyone@nospam.com>
Subject: Re: Y3K for PDP-11 Operating Systems
Date: Wed, 25 May 2011 21:14:15 -0400	[thread overview]
Message-ID: <irk9fg$pp9$1@dont-email.me> (raw)
In-Reply-To: <944mhrF19qU1@mid.individual.net>

[-- Attachment #1: Type: text/plain, Size: 3650 bytes --]

  >Bill Gunshannon wrote:

>Yes, but outside the PDP-11, when was the last time you actually had to
>worry about it as a programmer?  Or figuring out overlays.  Now there
>was a science!!
>
Just thought I would add a bit of information about overlays
in response to "Now there was a science!!".

I made some modifications to MACRO-11 which counts the
number of times an overlay is read into memory in addition
to the number of times the overlay is called - the difference
being the number of times the overlay was called, but was
already memory.  The numbers are displayed at the end
of the listing along with the elapsed time.

A sample output follows this post.  Note that the same assembly
takes over 11 minutes on a PDP-11/83.

MACRO-11 has one root section (or permanent overlay) and 13
overlay segments distributed across 3 regions:
Region 1:   1   2   3   4
Region 2:   5   6   7   8   9
Region 3: 10 11 12 13

Outside of initialization and termination code, only overlays 4,
9 and 11 seem to be used or one from each region.

Summarizing the results is very easy.  Most overlays are read
into memory (after being called, of course) a limited number
of times no matter how large the source code.  Overlays 4,
9 and 11 can be called (without being read into memory)
hundreds of thousands of times.  An order of magnitude
estimate is about 1 million total calls for each 1000 blocks
of source code.

BUT,  THE  TOTAL  NUMBER  OF  READS  IS  LESS
THAN  100  FOR  EVERY  EXAMPLE  THAT  WAS
TESTED!!!!!!!!!!!!!!!!!

The overlay handler uses only about a dozen instructions to
call an overlay segment which is already in memory.  So the
overhead in minimal if the subroutine being called does not
need to be read into memory.

I agree that DEC had many decades to optimize MACRO-11.
Perhaps DEC even wrote its own test code which did the same
as my modification.  The counts were not hard to keep once I
saw the expected results - 32 bit count for the number of calls
and a 16 bit counts for the number of reads or 3 words for each
overlay.  For extra insurance, I also kept a 48 bit count for the
total number of calls and the total number of reads (just in case)
since each additional word required only the "AdC  (R0)+"
instruction with no testing or branches after the first word used
"Add  #1,(R0)+" to advance the count.  Since I initially had no
idea how many calls or reads were being made,  a 48 bit
count was guaranteed to be sufficient.  Printing out the results
was the difficult part.

If anyone is interested, let me know.  After I finish the documentation,
I will release the code.  Meanwhile, if you have an example you want
to check, I can download the files if they are more than 1 MB.  Otherwise,
use Zip or BZip2 and e-mail me the files which should reduce them to
less than 1/2 MB.  Please include a SYSMAC.SML file if you need
a particular version.

Jerome Fine

------------------------------------------------------------------------------------------
          Sample Set of Count Values - Approximately 1100 blocks of Source Files

Errors detected:  0

*** Assembler statistics


Work  file  reads: 943
Work  file writes: 756
Size of work file: 38984 Words  ( 153 Pages)
Size of core pool: 21760 Words  ( 85 Pages)
Use  of  Overlays:    1   2   3      4   5   6   7   8      9  10     11  12  13    Total
   Segment  Calls:   11   5   3 528006   1   1   3   7 494138 106 135960  12   0  1158253
   Required Reads:   11   5   3     10   1   1   3   5      6  10     20  10   0       85
Operating  system: RT-11
Program File Name: LD2:MACRO.SAV[93]
Names of .FETCHed: None
   Device Drivers: None

Elapsed time: 00:00:39.07


[-- Attachment #2: Type: text/html, Size: 5011 bytes --]

  parent reply	other threads:[~2011-05-26  1:14 UTC|newest]

Thread overview: 146+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 13:12 Y3K for PDP-11 Operating Systems Jerome H. Fine
2011-04-04 13:40 ` Dennis Grevenstein
2011-04-04 18:58   ` Jerome H. Fine
2011-04-04 20:55   ` Johnny Billquist
2011-04-30 22:27 ` billy
2011-05-01 14:01   ` Jerome H. Fine
2011-05-01 17:27     ` Johnny Billquist
2011-05-02  0:53       ` Jerome H. Fine
2011-05-01 21:16 ` glen herrmannsfeldt
2011-05-02  0:54   ` Jerome H. Fine
2011-05-02  4:07     ` Johnny Billquist
2011-05-02 13:37       ` Jerome H. Fine
2011-05-02 15:39         ` Johnny Billquist
2011-05-02  5:15     ` glen herrmannsfeldt
2011-05-03  1:20 ` jjh
2011-05-03 13:18   ` Bob Koehler
2011-05-03 16:51     ` Jerome H. Fine
2011-05-03 17:50       ` VAXTREK Bob Koehler
     [not found]       ` <j0Y9tTme9SEK@eisner.encompasserve.org>
2011-05-03 18:39         ` Y3K for PDP-11 Operating Systems Henry Crun
2011-05-03 19:56           ` Jerome H. Fine
2011-05-03 22:52           ` onedbguru
2011-05-04  0:07             ` Bill Gunshannon
2011-05-04  5:16               ` Richard B. Gilbert
2011-05-04 13:01                 ` Bill Gunshannon
2011-05-04 14:19                   ` Richard B. Gilbert
2011-05-04 14:58                     ` Scott Dorsey
2011-05-04 16:33                     ` Bill Gunshannon
2011-05-05  1:51                       ` Richard B. Gilbert
2011-05-06 18:08                         ` G Cornelius
2011-05-06 18:47                           ` Richard B. Gilbert
2011-05-06 22:13                           ` Johnny Billquist
2011-05-08  1:00                             ` Rich Alderson
2011-05-08  1:51                               ` Johnny Billquist
2011-05-08 11:19                               ` Richard B. Gilbert
2011-05-09 21:32                                 ` Rich Alderson
2011-05-09 15:40                             ` Rob Brown
2011-05-09 15:43                               ` Johnny Billquist
2011-05-09 21:47                               ` vandys
2011-05-09 22:05                                 ` Johnny Billquist
2011-05-09 23:05                                   ` vandys
2011-05-09 23:20                                     ` Johnny Billquist
2011-05-10  0:12                                       ` vandys
2011-05-10  1:36                                         ` Johnny Billquist
2011-05-10  2:01                                         ` glen herrmannsfeldt
2011-05-10 13:31                                         ` Bob Koehler
     [not found]                                         ` <iqa6a7$gu8$1@dont-Organization: Encompasserve <fXiU1i6RQYr0@eisner.encompasserve.org>
2011-05-10 16:56                                           ` John Wallace
2011-05-10 17:50                                             ` Bob Koehler
2011-05-11 16:04                                               ` G Cornelius
2011-05-04 17:02                   ` Johnny Billquist
2011-05-04 17:20                   ` Bob Koehler
2011-05-04 18:10                   ` glen herrmannsfeldt
2011-05-04 19:21                     ` John Wallace
2011-05-04 22:06                     ` MetaEd
2011-05-05  3:17                       ` Johnny Billquist
2011-05-10 13:20                   ` Bob Koehler
2011-05-10 13:29                   ` Bob Koehler
2011-05-10 15:29                     ` Johnny Billquist
2011-05-10 17:16                       ` G Cornelius
2011-05-10 17:45                   ` Bob Koehler
2011-05-10 21:34                     ` Johnny Billquist
2011-05-10 17:58                   ` Bob Koehler
2011-05-10 21:36                     ` Johnny Billquist
2011-05-03 16:38   ` Jerome H. Fine
2011-05-03 11:28 ` paramucho
2011-05-03 16:09   ` Jerome H. Fine
2011-05-23  3:41   ` billy
2011-05-23  4:51     ` Johnny Billquist
2011-05-23 14:47       ` jjh
2011-05-23 15:04         ` Bill Gunshannon
2011-05-23 22:52           ` Johnny Billquist
2011-05-24  0:16             ` Bill Gunshannon
2011-05-24  0:40               ` Johnny Billquist
2011-05-24 12:58                 ` Bill Gunshannon
2011-05-24 14:02                   ` glen herrmannsfeldt
2011-05-24 14:36                   ` Johnny Billquist
2011-05-24 16:42                     ` Bill Gunshannon
2011-05-24 18:17                       ` Johnny Billquist
2011-05-24 20:07                         ` Bill Gunshannon
2011-05-25  1:07                           ` Rich Alderson
2011-05-25 10:34                           ` Johnny Billquist
2011-05-25 15:46                             ` Bill Gunshannon
2011-05-25 23:00                               ` Johnny Billquist
2011-05-26 15:50                                 ` Fritz Wuehler
2011-05-26 16:53                                   ` Johnny Billquist
2011-05-26 20:20                                     ` Fritz Wuehler
2011-05-28 18:01                                 ` Bill Gunshannon
2011-05-26  0:58                               ` Rich Alderson
2011-05-26  1:23                                 ` glen herrmannsfeldt
2011-05-26 13:01                                   ` Bob Koehler
2011-05-27  0:54                                     ` glen herrmannsfeldt
2011-05-26 20:15                                   ` Rich Alderson
2011-05-26 23:56                                     ` glen herrmannsfeldt
2011-05-27 18:37                                       ` Rich Alderson
2011-05-27  0:02                                     ` glen herrmannsfeldt
2011-05-27  3:17                                       ` Johnny Billquist
2011-05-27 18:51                                         ` Rich Alderson
2011-05-27 19:48                                           ` Johnny Billquist
2011-05-27 18:35                                     ` Rich Alderson
2011-05-26  1:14                               ` Jerome H. Fine [this message]
2011-05-26  1:32                                 ` glen herrmannsfeldt
2011-05-26 20:39                                   ` Jerome H. Fine
2011-05-26 15:50                               ` Fritz Wuehler
2011-05-25  1:01                         ` Rich Alderson
2011-05-26 12:53                         ` Bob Koehler
2011-05-26 16:59                           ` Johnny Billquist
2011-05-26  8:03                       ` Fritz Wuehler
2011-05-26 14:21                         ` paramucho
2011-05-26 18:50                           ` billy
2011-05-27 11:58                             ` paramucho
2011-05-27 17:23                               ` billy
2011-05-26 17:04                         ` Johnny Billquist
2011-05-27  1:30                           ` Fritz Wuehler
2011-05-27  2:17                             ` Scott Dorsey
2011-05-27  3:26                             ` Johnny Billquist
2011-05-30 21:09                             ` John Wallace
2011-05-31  1:15                               ` Johnny Billquist
2011-05-31 18:02                               ` jjh
2011-05-31 20:54                                 ` Bob Koehler
2011-05-31 21:37                                   ` glen herrmannsfeldt
2011-05-25  2:59                     ` Jerome H. Fine
2011-05-25 10:51                       ` Johnny Billquist
2011-05-25 12:36                         ` Jerome H. Fine
2011-05-25 17:25                           ` Tom Lake
2011-05-25 18:01                             ` Jerome H. Fine
2011-05-25 18:44                           ` Johnny Billquist
2011-05-26  1:20                           ` Rich Alderson
2011-05-26 16:53                             ` Rob Brown
2011-05-26 20:27                               ` Rich Alderson
2011-05-27  3:27                                 ` Johnny Billquist
2011-05-26 20:38                             ` Jerome H. Fine
2011-05-27  4:44                               ` Johnny Billquist
2011-05-24 12:02             ` paramucho
2011-05-23 14:48       ` Jerome H. Fine
2011-05-23 22:46         ` Johnny Billquist
2011-05-24  0:19           ` Bill Gunshannon
2011-05-24  0:43             ` Johnny Billquist
2011-05-25 18:41             ` Jerome H. Fine
2011-05-24  2:54         ` billy
2011-05-24 13:03           ` Bill Gunshannon
2011-05-24 14:39             ` Johnny Billquist
2011-05-24 15:10               ` billy
2011-05-24 15:48                 ` Johnny Billquist
2011-05-24 16:54               ` Bill Gunshannon
2011-05-24 14:42             ` billy
2011-05-24 16:56               ` Bill Gunshannon
2011-05-25 18:05               ` Jerome H. Fine
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox