🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.sys.pdp10
Article #16

Re: GETTAB vs GETAB in T10/T20 and getting sysinfo

#16
From: Rich Alderson
Date: Sun, 22 Nov 2026 00:43
360 lines
19064 bytes
I'm not going to quote your program fragment.

The information you want is found in chapter 2 of the Monitor Calls Reference
Manual, section 2.3.2 System Tables (page 2-27 in the text version fo the
manual found in the DOC: directory).

Since you don't read manuals, I reproduce the entirety of the section here:

2.3.2  System Tables

The contents of several system tables are available to programs for such
purposes as generating status reports and collecting system performance
statistics.  Each table is identified by a fixed name of up to six characters,
and consists of a variable number of entries.  The -1 entry in each table is the
negative of the number of data entries in the table; the data entries are
identified by an index that increments from 0.

Two calls exist for accessing tables.  The first, SYSGT, accepts a table name
and returns the table length, its first data entry, and a number identifying the
table.  The second, GETAB, accepts the table number returned by SYSGT, or
obtained from the MONSYM file, and returns additional entries from the table.

The system tables are as follows.  Numeric table indexes are given in octal.
Parallel tables, those for which a given index produces related information, are
indicated by "(Pn)" where n is a unique number for that set of parallel tables.

Table 2-2:  System Tables

  Name       Index              Contents

  APRID                         Processor serial number

  ACTJOB                        Range of active jobs on the system from lowest
                                job in use to highest job in use (not including
                                Job 0).

  BLDTD                         Date and time system was generated

  CSTAT                         CI statistics table

              0                 CI packets sent
              1                 CI packets received
              2                 SCA overhead messages sent
              3                 SCA overhead messages received
              4                 MSCP driver messages sent
              5                 MSCP driver messages received
              6                 MSCP server messages sent
              7                 MSCP server messages received
             10                 CFS messages sent
             11                 CFS messages received
             12                 SCS% messages sent
             13                 SCS% messages received
             14                 CI command queue 0
             15                 CI command queue 1
             16                 CI command queue 2
             17                 CI command queue 3
             20                 IP datagrams sent
             21                 IP datagrams received
             22                 DECnet datagrams sent
             23                 DECnet datagrams received
             24                 SCS% datagrams sent
             25                 SCS% datagrams received
             26                 MSCP driver datagrams received
             27                 HSCP  error-log  datagrams  received (ppd byte 5)

  DBUGSW                        Debugging information

              0                 state of system operation
                                0 = normal
                                1 = debugging
                                2 = standalone
                                3 = standalone fast startup
              1                 state of BUGCHK handling
                                0 = proceed
                                1 = breakpoint

  DEVCHR     (P1)               Device characteristics word, as described under
                                the DVCHR JSYS in Chapter 3, except that B5
                                (DV%AV) is not meaningful.

  DEVNAM     (P1)               SIXBIT device  name  including  unit number,
  	     			e.g., MTA3

  DEVUNT     (P1)          LH:  Job number to which device is assigned (with
				ASND), or -1 if device is not assigned, or -2 if
				reserved for device allocator.
                           RH:  unit number, or -1 if device has no units (for
                                example, DSK:)

  DRMERR                        Information on drum errors

              0                 number of recoverable errors
              1 to n            varies depending on type of drum being used

  DSKERR                        Information on disk errors

              0                 number of recoverable disk errors
              1 to n            varies depending on type of disk being used

  DWNTIM                        Downtime information

              0                 date and time when system will be shut down next
              1                 date and time when system will subsequently be up

  HQLAV                         High queue load averages

  JBONT     Job #               Owning job for CRJOB-created jobs.

  JOBNAM    Job #          LH:  reserved for DEC
                           RH:  index into the system program tables for the
                                system program being used by this job
                                (determined by the last SETSN call executed by
                                the job)

  JOBPNM    Job #               SIXBIT name of program running in this job

  JOBRT     Job #               CPU time used by the job (negative if no such job)

  JOBTTY    Job #          LH:  controlling terminal line number, or -1 if none
  	    		   	(job is detached)
                           RH:  reserved for Digital

  LOGDES                        Logging information

              0                 designator for logging information
              1                 designator for job 0 and error information

  LQLAV                         Low queue load averages

  MONVER                        Monitor version number (contents of location 137)

  NCPGS                         One-word table containing number of pages of
                                real (physical) user core available in system.
                                Note that this value includes resident
                                variables, and thus not all of the pages can be
                                assigned to a user process.

  NETRDY                        ARPANET operational status table

              0                 0       IMP down
                                .GT.0   IMP going down
                                -1      IMP up
              1                 0 = network off,
                                non-zero =  network on
              2                 flags for NETSER (not for user)
              3                 time of last NCP cycle up
              4                 last IMP GOING DOWN message
                                B0-15   reserved
                                B16-17  0  panic
                                        1  scheduled hardware PM
                                        2  software reload
                                        3  emergency restart
                                B18-21  number of 5-minute intervals before IMP
                                        goes down
                                B22-31  number of 5-minute intervals IMP will be down
              5                 time of last IMP ready drop
              6                 time of last IMP ready up
              7                 time of IMP GOING DOWN message

  NSWPGS     Default swapping pages

  PTYPAR                        Pseudo-TTY parameter information

               0           LH:  number of PTYs in system
                           RH:  TTY number of first PTY

  QTIMES     0 to n             Accumulated runtime of jobs on the n scheduler queues

  SCOUNT     (P3)               Count of SETSN JSYSs for each subsystem

  SNAMES     (P3)               SIXBIT name of system program, or 0 if this
                                entry is unused in this and the corresponding
                                four tables.

  SNBLKS     (P3)               Number of samples in working set size integral

  SPFLTS     (P3)               Total number of page faults of system program

  SSIZE      (P3)               Time integral of working set size

  STIMES     (P3)               Total runtime of system program

  SYMTAB                        SIXBIT table names of all GETAB tables

  SYSTAT                        Monitor statistics.  The entries in this table
                                are as follows:

              0                 time with no runnable jobs
              1                 waiting time with 1 or more runnable
                                jobs (waiting for page swapping)
              2                 time spent in scheduler
              3                 time spent processing pager traps
              4                 number of drum reads
              5                 number of drum writes
              6                 number of disk reads
              7                 number of disk writes
              10                number of terminal wakeups
              11                number of terminal interrupts
              12                time integral of number of processes
                                in the balance set
              13                time integral of number of  runnable
                                processes
              14                exponential  1-minute   average   of
                                number of runnable processes
              15                exponential  5-minute   average   of
                                number of runnable processes
              16                exponential  15-minute  average   of
                                number of runnable processes
              17                time integral of number of processes
                                waiting for the disk
              20                time integral of number of processes
                                waiting for the drum
              21                number of terminal input characters
              22                number of terminal output characters
              23                number  of  system  core  management
                                cycles
              24                time spent doing postpurging
              25                number of forced balance set process
                                removals
              26                time integral of number of processes
                                in swap wait
              27                scheduler  overhead  time  (same  as
                                entry 2) in high precision units

              30                idle time (same as entry 0) in  high
                                precision units

              31                lost time (same as entry 1) in  high
                                precision units
              32                user time
              33                time integral of number of processes
                                on  high queue.  (High queue is high
                                priority, low numerical value.)
              34                time integral of number of processes
                                on  low  queue.   (Low  queue is low
                                priority, high numerical value.)
              35                sum of process disk-write waits
              36                number  of  forced  adjustments   to
                                balance set
              37                integral of number of reserve  pages
                                of all processes in memory
              40                integral  of  number  of  pages   on
                                replaceable  queue.  The replaceable
                                queue contains pointers to all  free
                                memory pages.
              41                high precision pager trap time
              42                number of context switches
              43                high   precision   time   spent   on
                                background   tasks.    These   tasks
                                include low-level data  transfer  in
                                communications   layers,   including
                                network   and    terminal    service
                                routines.
              44                total system page traps
              45                total saves from replacement  queue.
                                A  "save" occurs when a desired page
                                is found on  the  replacement  queue
                                and need not be paged in.
              46                number of pages removed from  memory
                                during      system-wide      garbage
                                collection
              47                integral of number of  working  sets
                                in memory
              50                wait time without swap waits in high
                                precision units
              51                count of working set loads
              52                count of runable  processes  removed
                                from balance set
              53                number of pages removed from  memory
                                during      process-wide     garbage
                                collection
              54                count of terminal input wakeups
              55                count   of   read-after-write   disk
                                verifications
              56                lowest,,highest active  job  on  the
                                system (does not include job 0)

              57                operator,,user jobs logged into this
                                system  (does not include not logged
                                in jobs)

                                                NOTE

                                    This  table  is  subject  to
                                    change  (usually  additions)
                                    as  measuring  routines  are
                                    added to the system.

  SYSVER                        An ASCIZ string identifying the system name,
                                version, and date.  The string has the following
                                format:

                                string, TOPS-20 Monitor n.m(o)-p

                                where "string" is the text contained in the file
                                structure:<SYSTEM>MONNAM.TXT, "n" is the major
                                version number (1 to 3 digits), "m" is the minor
                                version number (0 to 2 digits), "o" is the edit
                                number (1 to 6 digits), and "p" is the number of
                                the group that last edited the version (0 or 1
                                digit).

                                If "m" is zero, it and its preceding period are
                                omitted.  If "p" is zero, it and its preceding
                                hyphen is omitted.  Otherwise, the period and
                                the hyphen are stored along with the other
                                information, including the spaces and
                                parentheses as shown, in the table.

  TICKPS                        One-word table containing number of clock ticks
                                per second.

  TTYJOB    line #         LH:  positive job number for which this is the
                                controlling terminal, or -1 for unassigned line,
                                or -2 for line currently being assigned, or job
                                number to which this line is assigned.

                           RH:  -1 if no process is waiting for input from this
                                terminal; other than -1 if some process is
                                waiting for input.

  WHOJOB                        Number of operator jobs and user jobs logged in
                                (not including Job 0).

The system program being run by a specific job may be determined from SNAMES,
using an index obtained from table JOBNAM.

The following monitor calls are used for obtaining information.  Calls marked
with an asterisk ("*") require privileges for specific functions.

     CNFIG%   Returns system configuration information
     ERSTR    Translates an error number to a string
     ESOUT    Returns an error string
     GETAB    Returns a word from a system table
     GETER    Returns the last error condition
     GETJI    Returns job information for specified job
     GETNM    Returns the program name being used by the job
     GJINF    Returns job information for current job
     GTAD     Returns the system's date
     GTDAL    Returns the disk allocation of a directory
     GTDIR*   Returns directory information
     GTRPI    Returns the paging trap information
     GTRPW    Returns the trap words
     HPTIM    Returns the high-precision clock values
     LATOP%*  Performs Local Area Transport (LAT) functions
     MRECV*   Retrieves IPCF message
     MSEND*   Sends IPCF message
     MSTR*    Performs structure-related functions
     MUTIL*   Performs IPCF functions
     NTINF%   Returns generic network information
     SKED*    Manipulates scheduler data base
     SYSGT    Returns values for a system table
     RUNTM    Returns the runtime of a job or process
     TIME     Returns the time since the system was restarted

-- 
Rich Alderson					  news@alderson.users.panix.com
      Audendum est, et veritas investiganda; quam etiamsi non assequamur,
	  omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
									--Galen
Technical Details
Message-ID: <mddpkvxy9uw.fsf@panix5.panix.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.2602:f977:0:1::5!not-for-mail
References: <87ecce9jtt.fsf@atr2.ath.cx>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.2602:f977:0:1::5!not-for-mail
From: Rich Alderson <news@alderson.users.panix.com>
Newsgroups: alt.sys.pdp10
Subject: Re: GETTAB vs GETAB in T10/T20 and getting sysinfo
Date: 21 Nov 2026 19:43:03 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 360
Sender: alderson+news@panix5.panix.com
Message-ID: <mddpkvxy9uw.fsf@panix5.panix.com>
References: <87ecce9jtt.fsf@atr2.ath.cx>
Injection-Info: reader2.panix.com; posting-host="2602:f977:0:1::5";
	logging-data="27032"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3