Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Viewing system performance z/OS MVS Planning: Global Resource Serialization SA23-1389-00 |
|
The cause of a response time problem that shows up either as an increase in interactive user response time or an increase in the time it takes to complete a batch job, is sometimes difficult to pinpoint. One way to obtain a very useful end user view of performance is to code a program that issues repetitive global resource requests (ENQ macros with a scope of SYSTEMS) and measures the elapsed time required for a response. Figure 2 shows an example of how to invoke a program that measures request response time from the perspective of the problem program issuing the request. You can take repetitive samples, allowing you to analyze response time over a longer period. The program, GENQRESP, is provided in SYS1.SAMPLIB(ISGNQRSP). You will need to ensure that G.SAMPLES DD is appropriate for your installation. The program uses STIMER to suspend itself for a user-specified interval. When the interval has expired, the program issues an ENQ with a scope of SYSTEMS for a nonexistent resource. The program notes the value of the system TOD clock before issuing the ENQ request and again when control returns. The difference between the two values is the global resource request response time. The program then frees the resource and repeats the request. The GENQRESP program encounters the same contention for the processor and storage as does any other problem program in your system. Thus, even after the system grants the global resource request, the program might not receive control immediately because of other factors, such as waiting for the processor, paging, or swapping. To ensure that the response time GENQRESP measures is as close as possible to the actual response time:
Use the RNL=NO keyword to prevent the alteration of the requested ENQ's SCOPE and to insure that global resource serialization processes a GLOBAL ENQ. When specifying the default of RNL=YES, the resulting SCOPE can be altered by the RNL, installation exit, or an alternate method of serializing global resources. You can have different versions of GENQRESP to use RNL=NO or RNL=YES. Use these to measure the differences between having the ENQ altered and managed by another serialization method and Global Resource Serialization. You can also use the ISGENQ macro TEST=YES option to determine if the ENQ issued is being altered, managed, or both by alternate serialization methods. Figure 1 shows an example of the output of GENQRESP. Figure 1. Sample Output of GENQRESP
Figure 2. Measurement Program Example
|
Copyright IBM Corporation 1990, 2014
|