Input/Output Supervisor

The Input/Output Supervisor (IOS)[1] is that portion of the control program in the IBM mainframe OS/360 and successors operating systems which issues the privileged I/O instructions and supervises the resulting I/O interruptions for any program which requests I/O device operations until the normal or abnormal conclusion of those operations.

Purposes

IOS has two purposes:

Program sections

To facilitate the handling of the I/O requests and interruptions, IOS is divided into two primary program sections (CSECTs):

These primary sections are resident in main storage and provide control program support for the normal execution of channel programs.

The secondary program sections (also CSECTs), termed Error Recovery Procedures (ERPs), are, with but one exception, located on external storage, and are brought into main storage for recovery from the abnormal execution of channel programs. In the early instances of the OS, these sections were brought into the Input/Output Supervisor's "transient area", not unlike the OS/360 Control Program's Supervisor Call "transient areas". In post-MVT instances of the OS, these sections are located in the pageable linkpack area (PLPA) and are demand-paged.

The sole exception is, of course, the ERP for direct access storage devices, which must always remain resident in order to recover from possible I/O errors on the IPL volume and on other volumes which contain datasets which may be concatenated with certain system datasets.

Multiprogramming

IOS is designed around a multi-programming concept whereby operations on different I/O channels, control units and devices may be managed concurrently and apparently simultaneously. This concurrency and apparent simultaneity is present even in the most basic version of the OS, PCP, which otherwise supports only one user task, as the underlying hardware architecture has but one set of I/O instructions and but one I/O interruption, for accessing the devices and for accessing the resulting device status, respectively, available to support all attached I/O devices, hence all I/O device operations must be synchronously multiplexed in to the half-dozen privileged I/O instructions and asynchronously de-multiplexed out from the single I/O interruption by IOS[2] yet this entire process, from start to finish, is made to appear to be synchronous to the application. Essentially, IOS is a hypervising operating system built on top of the OS itself, and entirely within it, not as a separable function. A very specialized hypervisor, to be sure, as the hypervisation is restricted to the several I/O instructions and the one I/O interruption.

Multiprocessing

In MVS/370 and later instances of the OS, IOS is also designed around a multi-processing concept whereby all available processors, as many as two in MVS/370 and as many as sixteen in later instances of the OS (twelve were supported by IBM; sixteen were supported by Amdahl), are effectively and efficiently utilized. And, to best utilize this multi-processing capability, IOS's multi-programming implementation was partitioned into smaller executable units, in particular those which may be executed under the control of an SRB.

Initiation/Completion

IOS is not invoked directly by the programmer. Rather, IOS is invoked through "branch entries" to start I/O requests and through "interrupt handlers" to complete I/O requests.

References

  1. IBM Corporation (1967). IBM System/360 Operating System Input/Output Supervisor (PDF).
  2. Historically, this multiplexing/de-multiplexing was aided by a specialized control block, private to IOS and its components, the so-called "twelve star" (abbreviated, 12*) in pre-MVT incarnations of OS/360 and the so-called "sixteen star" (abbreviated, 16*) in MVT, but still called a "twelve star" in most cases. "Sixteen stars" remained in the EXCP processor of MVS/370 for compatibility purposes, but these private control blocks became less significant as more of IOS's function was off-loaded to the I/O channels themselves in post-MVS/370 incarnations of the hardware and software.
This article is issued from Wikipedia - version of the 3/23/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.