Browse Prior Art Database

Method and System for Enabling Fully Controlled Testing Environment for CPU Measurement Function

IP.com Disclosure Number: IPCOM000191480D
Original Publication Date: 2010-Jan-05
Included in the Prior Art Database: 2010-Jan-05
Document File: 4 page(s) / 82K

Publishing Venue

IBM

Abstract

A method and system for enabling a controlled testing environment for a Central Processing Unit (CPU) measurement function is disclosed.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 43% of the total text.

Page 1 of 4

Method and System for Enabling Fully Controlled Testing Environment for CPU Measurement Function

A method and system is disclosed for enabling a controlled testing environment for a CPU (Central Processing Unit) measurement function.

    Typically, a CPU measurement facility provides a measurement of hardware instrumentation in the field of support application performance tuning. The measurement facility may include a number of controls to activate, enable, or authorize different counters and sampling functions. A user may set or modify these controls from the Service Element (SE). For example, the user may choose zones that may be authorized to check counters or may set sampling controls. In a scenario, a machine may be controlled by a Logical Partition (LPAR). In such a scenario, storage needed by the measurement facility may be provided and controlled by the LPAR. This control imposes a major limitation on the user since the user may not be able to alter the content or the size of buffers.

    A method and system is disclosed for a dual-phased test methodology wherein testing a measurement facility is done with full control of a test environment. The method and system enables a fully controlled testing environment for a CPU measurement function. The method and system involves creating a virtual environment at a basic machine level which is similar to a LPAR. This virtual environment takes full control of resources and state controls used by the CPU measurement facility. The fully controlled virtual environment facilitates in randomizing "measurement-state-controls" and may occasionally force non-existing states. The fully controlled virtual environment also facilitates initializing and examining Measurement Block (MB) entries and set corner cases. The fully controlled virtual environment further sets a current Sample Data Block Table (SDBT), Sample Data Block (SDB) and forces corner cases when required.

    As disclosed herein, the LPAR may own some or all resources needed for testing. The test generator plays a role of the LPAR, when a machine is not under the LPAR. Therefore, the machine may have full control of the needed resources. The following actions may be taken by the test generator for performing the role of the LPAR:

Placing the machine under a basic level mode;

Initiating a virtualization environment by running appropriate instructions; Creating MB, SDBT and SDB blocks for different machine levels; and Randomizing the counter and sample controls.

    On the other hand, the machine, while working under LPAR, may leverage limited controls granted by the LPAR for creating valid and meaningful test cases. The machine also creates compensations for some of the LPAR imposed limitations. Thereafter, using this limited control, test cases are created for checking machine red-lights as well as some predictable test cases....