Serialization of disk resources (data sets) is a necessary evil in any multi-tasking, multi-user, multi-system environment, so the less time you spend performing serialization, the better. Over the decades, z/OS serialization has gotten more refined. Starting with Volume Reserve, moving to Systems Enqueue and most recently Record Level Sharing (RLS), each refinement is designed to allow a greater level of resource sharing across a multi-tasking, multi-user, multi-system environment.
Serialization protects the integrity of a data set in a shared disk environment. It has been said that the only thing worse than shared disk is unshared disk. A shared disk allows all systems to access the most recent, up to date version of the data set. The alternative to shared disk is copies of the same data set for each system, with the new versions being distributed as updates that are coordinated across the systems. Sharing data on unshared disk requires more disk space, network bandwidth, and the overhead of a coordinated update to keep all copies in sync.
Use of Volume Reserve
Use of Volume Reserve prevents all updates to the disk volume and will lock out all access to the systems that did not issue the reserve until the reserving system releases the volume. Protecting the resource may mean that jobs on other systems will be delayed, even if they want to access other data sets that happen to reside on the reserved disk volume. As you might imagine, the larger the capacity of disk volume used, the more data sets are likely to reside on that volume and the greater pain is if reserve is issued. Reserve contention is included in PEND time of Disk service and response time. IntelliMagic Vision includes this component of PEND time as a metric named Device Busy Delay.
Use of a Systems Enqueue
Use of a Systems Enqueue involves the use of a serialization manager like Global Resource Serialization (GRS) or Multi-Image Manager (MIM). These managers largely work as request registration systems. They receive the request, check to see if a prior request is still active, check the nature of the present use (none/read/write/update) against the requested use (read/write/update) and either allow the access or queue the request until the present access completes. The request is called an ENQ, and completion is called a DEQ. ENQ/DEQ activity identifies a specific resource using a Major Name and a Minor Name. Requesting access to a resource and the time spent being queued because of an existing ENQ is called Contention Time. The existing ENQ is called the owner and the requesting ENQ is called the requestor. ENQ/DEQ activity is recorded by RMF in the SMF record type 77.
Record Level Sharing (RLS) was developed for VSAM data sets and makes Coupling Facility structures (consisting of a cache structure and the IGWLOCK00 lock structure) and the system address space SYSVSAM responsible for serialization. Each system in the sysplex has its own SYSVSAM address space and they all share the same Coupling Facility structures. This implementation removes the need to use Reserve/Release or ENQ/DEQ to access the data set for any reason. When estimating the positive impact of implementing RLS Catalogs, you need to either look at the Device Busy Delay (if Volume Reserve is being used) or (more likely) look at the contention time for major name SYSIGGV2 and the catalog name is the minor name for ENQ/DEQ.
Below are sample reports for GRS Contention time reported by IntelliMagic Vision. First is a Contention Rate events report. As you can see, the major name SYSIGGV2 has the highest number of contention events.
Next, we want to look at Contention Times (how long does the contention last). From this chart, you see that the fourth highest contention time is attributed to SYSIGGV2. The bar labeled SYSIGGV2 shows the total contention time for Catalog ENQ/DEQ (for the selected timeframe).
The next chart will take the selected drilldown to Minor Names and select the Major Name SYSIGGV2.
This chart shows the contention by User catalog.
In this environment, it is apparent there are only two user catalogs with any real contention and the rest have little to no contention.
Based on the evidence provided by the first chart of event rate per second, Catalog (or more accurately SYSIGGV2) is GRS’s best customer. The second chart shows the overall benefit of eliminating ENQ/DEQ for catalog activity by calculating contention time that would be removed if RLS catalog is implemented. And lastly the third chart shows, not all catalogs benefit equally, so you could focus the conversion to the catalogs with the highest contention time.
This blog demonstrates determining initial benefits of RLS Catalog Conversion, shows how to find the higher value targets for implementation as well as the ability to monitor all ENQ/DEQ activity with IntelliMagic Vision.
Modernize Db2 SMF Analysis with Smarter Algorithms
The Db2 SMF data is a rich and voluminous source of metrics, but the size and complexity make it difficult to know when the metrics start to get into conditions that represent problems, risk, and best-practice violations.
IntelliMagic Sessions at IDUG Charlotte 2019
After releasing our support for Db2 for z/OS earlier this year, we decided to sponsor the North American IDUG conference and the response was overwhelmingly positive.
An Insider's Guide to Tailored Fit Pricing for IBM Z
IBM's Tailored Fit Pricing model throws the R4HA/4HRA out the window. Peak hours and days are no longer a concern - your total MSU (CPU) consumption for the year, will determine your bill.
Subscribe to our Newsletter
Subscribe to our newsletter and receive monthly updates about the latest industry news and high quality content, like webinars, blogs, white papers, and more.