Difference between revisions of "ITS Internals Manual"

From Computer History Wiki
Jump to: navigation, search
m (External links: more canonical links)
m (External links: A bunch more)
Line 46: Line 46:
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/usets.120 ITS USETS] - "all user variables hacked by .USET/.SUSET"
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/usets.120 ITS USETS] - "all user variables hacked by .USET/.SUSET"
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/%25pi.105 ITS Interrupts]
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/%25pi.105 ITS Interrupts]
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.intrup Overview of ITS User Interrupts]
+
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/intrup.108 Overview of ITS User Interrupts]
*** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/intrup.108 Overview of ITS User Interrupts] - different dir
+
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/pclsr.test PCLSR TEST] - useful background
** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/pclsr.test PCLSR TEST] - useful background
+
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/ufd.100 ITS UFD] - Disk file directories
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.ufd ITS UFD] - Disk file directories
+
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/devdoc.5 I/O Device Dispatch Tables]
*** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/ufd.100 ITS UFD] - different dir
+
** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/jobonl.100 JOB/BOJ Device]
** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/devdoc.5 I/O Device Dispatch Tables]
+
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/locks.108 LOCK device] - "documentation for the LOCK device, the locked switch list and critical routine features"
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.jobonl JOB/BOJ Device]
 
*** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/jobonl.100 JOB/BOJ Device] - different dir
 
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.locks LOCK device] - "documentation for the LOCK device, the locked switch list and critical routine features"
 
*** [https://github.com/PDP-10/its-vault/blob/master/files/sysdoc/locks.108 LOCK device] - different dir
 
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/clo.100 Core link device]
 
** [https://github.com/PDP-10/its/tree/master/doc/sysdoc/clo.100 Core link device]
 
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.ttyvar ITS TTYVAR] - "TTY variables"
 
** [https://github.com/PDP-10/its-vault/blob/master/files/_info_/its.ttyvar ITS TTYVAR] - "TTY variables"

Revision as of 01:00, 13 September 2023

There is some documentation for Incompatible Timesharing System, but principally oriented towards the users and programmers thereof (see links below). This page attempts to provide at least the high-level portions of a manual which describes how the kernel of the system is organized.

Note: This page is under construction.

Basics

  • Jobs
    • User variables
    • Interrupts
    • How they get started
  • Memory management (pages)
  • File system
  • I/O
    • Terminals
      • Terminal-type independent output
    • Virtual devices
  • Daemons
  • Bootstrapping
  • Networking

Daemons

ITS has both classic daemons (which are ordinary processes, which load their code from the file system, run in the same CPU mode as normal user processes - and thus have a private address space), and what we are calling 'system processes [temporary placeholder - I need to send that email to COFF] (whose code is statically linked in with the kernel, and thus loaded into main memory at bootstrapping time, and run in 'executive' mode, and thus share the kernel's address space).

On startup, ITS starts a job called SYSJOB which does some system tasks as a regular job. One of the things it does when it starts, is to run SYS; ATSIGN DRAGON which is a central daemon. (On ITS, a "dragon" is a permanent system job, and a "demon" is a temporary system job which is started on demand.) This dragon is also called TARAKA and lives in the CHANNA directory (names taken from the book Lord of Light.) TARAKA is responsible for starting other dragons in there, which start with the file name RAKASH. One of those is RAKASH CNAVRL which launches COMSAT (the mailer daemon).

There is also a system process called the CORE JOB, which before paging used to shuffle processes around in core, but which now ??

At least one ITS machine, DM, had a 'batch' daemon.

How system jobs get started

When ITS wants to start a system job, it calls NUJBST with the SIXBIT job name in T. The core image in SYS: ATSIGN T will be started. This is used to start HACTRN, the Arpanet NETRFC handler, the TCP handler, the CHAOS agent, and demons.

T is stored in a ring buffer, and is read out on a "slow clock" tick by USTART. A new job is created, and its user PC is set to 1. The job accumulators are loaded with code from NUSTCD, which opens the file, calls LOAD, and jumps to the starting address. In ancient times, the NUSTCD code would first try the file on the SYS: device, and then fall back to the UT2: device; this is a remnant from when ITS ran off DECtape with the system tape mounted on unit 2.

External links