Channel measurement method and means
First Claim
1. A means for measuring channel use time, comprising:
- a computer electronic complex (CEC) having an I/O channel subsystem supporting I/O channels shareable by a plurality of operating systems (OSs) associated with different resource partitions in the CEC including a plurality of CPUs, and each partition having an assigned portion of a CEC main storage (MS) used by the associated OS;
a plurality of channel processors provided for respectively controlling I/O channels in an I/O channel subsystem of the CEC, each channel processor sensing an amount of continuous busy time for each channel as a time segment of measurement for the channel, means for summing the time segments for each channel and recording the sum in a channel accumulation entry in a local storage of the channel, and recording a time stamp indicating a time for the occurrence of the end of the last time segment provided to the summing means;
a plurality of channel measurement facilities (CMFs) provided for the I/O channel subsystem of the CEC, the CMFs associated with the OSs to make measurements of utilization of the I/O channels by respective OS;
means for periodically transferring the content of the channel accumulation entries and the time stamp entry from the local storages of all channel processors to corresponding entries in the CMFs to obtain a collection of entries in each associated CMF for all channels used by the associated OS, the contents of the entries in each CMF representing the accumulated utilization time and time stamps from a last resetting of the contents of all entries in the CMF; and
a CPU executing a CMF instruction for any OS to start an associated CMF, the associated CMF having all entries reset by a start command issued by the CMF instruction to start a measurement period from the time of execution of the CMF instruction, the CPU executing a CMF stop instruction to stop the measurement period after which the content of the associated CMF contains a measurement of channel utilization by the OS.
1 Assignment
0 Petitions
Accused Products
Abstract
Provides a method for measuring the busy utilization time for I/O channel used by any of plural operating systems (OSs) in a CEC. The measured utilization time for any OS excludes the time shared channels are utilized by other OSs during a measurement period. A channel measurement facility (CMF) is provided in the I/O subsystem hardware and microcode for each of the OSs in the I/O subsystem. The CMF is logically constructed because it uses only a small portion of I/O resources already existing in a CEC by adding microcode to control these resources to perform the time measurement function. The resources for a logical CMF including the partial use of: an I/O processor to store identifiers of an assigned OS, the partial use of channel processors controlling channels selected by the assigned OS during a measurement period, the local storage of each I/O processor, and OS storage needed for communicating the measurement data from the CMF to the OS. Any CPU can control a measurement by issuing "set channel measurement" instructions for starting and stopping a measurement performed asynchronously by the CMF to release the CPU for other independent CPU operations during a measurement period. The instruction can also be used to test the status of any CMF.
77 Citations
35 Claims
-
1. A means for measuring channel use time, comprising:
-
a computer electronic complex (CEC) having an I/O channel subsystem supporting I/O channels shareable by a plurality of operating systems (OSs) associated with different resource partitions in the CEC including a plurality of CPUs, and each partition having an assigned portion of a CEC main storage (MS) used by the associated OS; a plurality of channel processors provided for respectively controlling I/O channels in an I/O channel subsystem of the CEC, each channel processor sensing an amount of continuous busy time for each channel as a time segment of measurement for the channel, means for summing the time segments for each channel and recording the sum in a channel accumulation entry in a local storage of the channel, and recording a time stamp indicating a time for the occurrence of the end of the last time segment provided to the summing means; a plurality of channel measurement facilities (CMFs) provided for the I/O channel subsystem of the CEC, the CMFs associated with the OSs to make measurements of utilization of the I/O channels by respective OS; means for periodically transferring the content of the channel accumulation entries and the time stamp entry from the local storages of all channel processors to corresponding entries in the CMFs to obtain a collection of entries in each associated CMF for all channels used by the associated OS, the contents of the entries in each CMF representing the accumulated utilization time and time stamps from a last resetting of the contents of all entries in the CMF; and a CPU executing a CMF instruction for any OS to start an associated CMF, the associated CMF having all entries reset by a start command issued by the CMF instruction to start a measurement period from the time of execution of the CMF instruction, the CPU executing a CMF stop instruction to stop the measurement period after which the content of the associated CMF contains a measurement of channel utilization by the OS. - View Dependent Claims (2, 3, 4)
-
-
5. A method of measuring channel use time by a plurality of operating systems (OSs) sharing plural channels in a computer electronic complex (CEC), comprising the steps of:
-
structuring a logical channel measurement facility (CMF) for each of the plural OSs in the CEC;
each of the OSs operating in a different logical resource partition in the CEC and having an assigned OS identifier (IID);measuring by each channel processor in the CEC of each channel time segment used by the channel processor, each time segment being time measured during continuous operation of a channel processor for an OS, accumulating for each channel processor all time segments used by the channel processor for each OS over a measurement period; transferring accumulated time segments for each OS from each channel processor to each of a plurality of channel measurement facilities (CMFs) in the CEC for enabling each OS to access accumulated time segments for each channel processor used by the OS over a measurement period; and independently controlling each of the plural CMFs by a hypervisor in the CEC issuing a command designating an IID assigned to the CMF for controlling the CMF, and a CMF not being changed by a commanded operation performed by any other CMF. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35)
-
Specification