Storage occupancy counts
An occupancy count measures the area under the curve of user-task storage in use against elapsed time.
The unit of measure is the “byte-unit”, where the “unit” is equal to 1024 microseconds, or 1.024 milliseconds. Where ms is milliseconds, a user task occupying, for example, 256 bytes for 125 milliseconds, is measured as follows:
125 / 1.024 ms = 122 units * 256 = 31 232 byte-units.
To calculate response time and convert into microsecond units:
Response = ((Stop time - Start time) * 16)
To calculate number of 1024 microsecond “units”:
Units = (Response / 1024)
or
Units = ((Stop time - Start time) / 64)
To calculate the average user-task storage used from the storage
occupancy count:
Average user-task storage used = (Storage Occupancy / Units)
To calculate units per second:
Units Per Second = (1 000 000 / 1024) = 976.5625
To calculate the response time in seconds:
Response time = (((Stop time - Start time) * 16) / 1 000 000)
- Before GETMAIN increases current user-storage values
- Before FREEMAIN reduces current user-storage values
- Just before the performance record is moved to the buffer.
