Using Processor Resources CP allocates the processor resource to virtual machines according to
their operating characteristics, priority, and thesystem resources
available.Virtual machines are dynamically categorized at the end of each time slice as interactive or noninteractive, depending upon the frequency of
operations to or from either the virtualsystem console or a terminal
controlled by the virtual machine.Virtual machines are dispatched from one of two queues, called Queue
1and Queue 2. In order to be dispatched fro. either a virtual machine must be considered executable (that is, not waiting for some activity or for some other system resource). Virtual machines are not
considered dispatchable if the virtualmachine: • Enters a virtual wait state after an I/O operation has begun. • Is waiting for a page frame of real storage. • Is waiting for an I/O operation to be translated by CP and started. • Is waiting for CP to simulate its privileged instructions. • Is waiting for a CP console function to be performed. Queue 1 Virtual machines in Queue 1 (Q1) are considered conversational or
interactive users, and enter this queue when an interruptfrom a
terminal is reflected to the virtual machine.Users are considered for
dispatchingfrom this queue on a first-in-first-out (FIFO) basis. When a virtual machine uses more than a certain amount of processor time without entering a virtual wait state, that user is placed in Queue 2. Virtual machines are dropped fro. Q1 when they complete their ti.e slice of processor usage, and are placed in an "eligible list". Virtual machines entering CP command mode are also dropped from Q1. When the
virtual machinebecomes executable again (returns to execution mode) it
is placed at thebottom of 01. Queue 2 Virtual machines in Queue 2 (02) are considered noninteractive users. Users are selected to enter Q2 from a list of eligible virtual machines (the "eligible list"). The list of eligible virtual machines is sorted
on alIFO basis within user priority (normally defined in the user
record in theV8/310 directory, but may be altered by the system operator). Usually, a virtual aachine is selected to enter 02 only if its
"working set" is not greater than thenumber of real page frames available for allocation at the time. The working set of a virtual
aachine is calculated and saved eachtime a user is dropped froa 02 and
is based on thenumber of virtual pages referred to by the virtual
aachine during its stay in Q2, and the nuaber of its virtual pages that
are resident in real storage at thetime it is dropped froa the queue.
CP Introduction 1-11
their operating characteristics, priority, and the
available.
operations to or from either the virtual
controlled by the virtual machine.
1
considered dispatchable if the virtual
interactive users, and enter this queue when an interrupt
terminal is reflected to the virtual machine.
dispatching
virtual machine
is placed at the
on a
record in the
"working set" is not greater than the
aachine is calculated and saved each
is based on the
aachine during its stay in Q2, and the nuaber of its virtual pages that
are resident in real storage at the
CP Introduction 1-11