Using Processor Resources
Queue 1
Queue 2CP allocates the processor resource to virtual machines according to their operating
characteristics, priority, and the system resources available.
Virtual machines are dynamically categorized at the end of each time slice as inter
active or noninteractive, depending upon the frequency of operations to or from
either the virtual system console or a terminal controlled by the virtual machine.
Virtual machines are dispatched from one of three queues, called Queue 1, Queue
2, and Queue 3. In order to be dispatched from a queue, a virtual machine must be
considered executable (that is, not waiting for some activity or for some other sys
tem resource). Virtual machines are not considered dispatchable if the virtual
machine:
Enters a virtual wait state after anI/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 forCP to simulate its privileged instructions.
Is waiting for aCP console function to be performed.
Virtual machines in Queue 1 (Q 1) are considered conversational or interactive
users, and enter this queue when an interrupt from a terminal is reflected to the vir
tual machine. The Q 1 virtual machines are ordered by their deadline priorities in
the dispatch list. A deadline priority is a value calculated by the fair share schedul
er every time a user is dropped from a queue (queue drop time). This value is
based on paging activity, processor usage, the load on the system, and user priority.
Deadline priority is used to determine when the user receives his next time slice.
A particular virtual machine's deadline priority for Q1 is better (earlier) than its
corresponding priority for Q2. The deadline priorities for all Q1 virtual machines
are not necessarily better than the deadline priorities for all Q2 virtual machines.
Virtual machines are dropped from Q 1 when they complete their time slice of
processor usage, and are placed in an"eligible list". Virtual machines entering CP command mode are also dropped from Q 1.
Virtual machines are selected to enter Q2 from a list of eligible virtual machines
(the eligible list). The ordering of virtual machines on the eligible list and the dis
patch list is determined on the basis of each virtual machine's deadline priority.
There are two lists of virtual machines in Q2; those in the eligible list and those in
the dispatch list. Both lists are sorted by deadline priority. A particular deadline
priority depends on many factors:
The time-of-day the virtual machine last dropped from the dispatch list
The virtual machine's user priority
Using Processor Resources 15
Queue 1
Queue 2
characteristics, priority, and the system resources available.
Virtual machines are dynamically categorized at the end of each time slice as inter
active or noninteractive, depending upon the frequency of operations to or from
either the virtual system console or a terminal controlled by the virtual machine.
Virtual machines are dispatched from one of three queues, called Queue 1, Queue
2, and Queue 3. In order to be dispatched from a queue, a virtual machine must be
considered executable (that is, not waiting for some activity or for some other sys
tem resource). Virtual machines are not considered dispatchable if the virtual
machine:
Enters a virtual wait state after an
Is waiting for a page frame of real storage.
Is waiting for
Is waiting for a
Virtual machines in Queue 1 (Q 1) are considered conversational or interactive
users, and enter this queue when an interrupt from a terminal is reflected to the vir
tual machine. The Q 1 virtual machines are ordered by their deadline priorities in
the dispatch list. A deadline priority is a value calculated by the fair share schedul
er every time a user is dropped from a queue (queue drop time). This value is
based on paging activity, processor usage, the load on the system, and user priority.
Deadline priority is used to determine when the user receives his next time slice.
A particular virtual machine's deadline priority for Q1 is better (earlier) than its
corresponding priority for Q2. The deadline priorities for all Q1 virtual machines
are not necessarily better than the deadline priorities for all Q2 virtual machines.
Virtual machines are dropped from Q 1 when they complete their time slice of
processor usage, and are placed in an
Virtual machines are selected to enter Q2 from a list of eligible virtual machines
(the eligible list). The ordering of virtual machines on the eligible list and the dis
patch list is determined on the basis of each virtual machine's deadline priority.
There are two lists of virtual machines in Q2; those in the eligible list and those in
the dispatch list. Both lists are sorted by deadline priority. A particular deadline
priority depends on many factors:
The time-of-day the virtual machine last dropped from the dispatch list
The virtual machine's user priority
Using Processor Resources 15