Home > Data Center Tips > CICS Newsletter > Optimizing VSAM datasets on the mainframe: Specific recommendations
Data Center Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

CICS NEWSLETTER

Optimizing VSAM datasets on the mainframe: Specific recommendations


Robert Crawford, Contributor
11.27.2006
Rating: -4.78- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Last month I wrote some basics about IBM's Virtual Storage Access Method (VSAM) datasets. This column will contain some specific recommendations for the few of you who're still using these things.
More on CICS:
Securing CICS for newbies

Mainframe Management all-in-one guide

Use alternate indexes sparingly: An alternate index (AIX) may seem like a good idea at the time. What could be better than providing an alternate access path to data?

The problem is the alternate access comes at a price. If the AIX is set up to be an "upgrade" set, each update to the base cluster results in more I/O in the AIX. What's more, because AIX data is structured around alternate keys, they are hard to tune and may quickly become poor performers due to control interval (CI) and control area (CA) splits.

If you must use alternate indexes, try to keep them away from online systems. If you must have them on the online system consider not using the upgrade option to prevent extra I/O to the AIX. If you must keep the AIX current consider limiting the number of alternate indexes to one or two.

Keep string number low for ESDS: Many applications use an Entry Sequenced Data Set (ESDS) as a processing log. On very active systems this means dozens of transactions per second vying for access to the file.

Once you look at the statistics for such a file your first impulse is to increase the file's string number to allow for more concurrent usage and reduce string waits. However, this is counterproductive. Once there are more than two or three concurrent transactions they will start fighting each other for access to the last CI in the dataset. In detailed terms, CICS may have to re-drive the I/O multiple times before the task gets exclusive control of the last CI and completes the write. In a worst-case scenario I once saw in an auxiliary trace, CICS re-drove the I/O dozens of times, thus increasing both CPU and response time. In these situations string waits are more efficient

Use Local Shared Resource (LSR) wherever possible: LSR mode allows VSAM to maintain dataset buffer pools to reduce I/O through lookaside processing. Lookaside is a buffering technique where VSAM looks for a record in storage before getting it off of disk. VSAM manages the buffers with a least recently used (LRU) algorithm meaning the buffer that's gone the longest without being touched is reused.

CICS has a lot of options for taking advantage of LSR, and if you have the virtual storage above the 16M line you can get your buffer ratio up to 90%. Consider the following:

  • CICS allows for eight separate buffer pools. Normally one is sufficient, but you can move a very active dataset into its own pool to prevent its records from crowding out others.
  • You may specify buffers for index and data control intervals. This provides the opportunity to create an index-only buffer pool large enough to contain all of your index CI's, which makes keyed access much faster.

    There are two reasons not to use LSR. First, sequential I/O, browsing, is more efficient with non-shared resources (NSR) processing. Second, a transaction can hang itself up while processing an LSR dataset if it does a series of READNEXT commands followed by a get for update on one of the browsed records. As far as I know, this is still a restriction.

    Size is important: The CI size you pick for the data component of the cluster is a balancing act between space and performance. The simple thing to do is divide the average record size into the available CI sizes until you get a reasonable number of records in one block. However, there are two other things to consider. First, each CI contains a four byte CI Definition Field (CIDF) and at least one three byte record definition field (RDF) for each record in a variable record length cluster. For fixed record clusters there are just two. Although these are small fields you should take them into account.

    The second consideration is free space. Free space allows you to set aside some room in the CI for inserted records and thus avoid CI splits. You don't have to allocate any free space if the dataset is read-only or new records are always added to the end of the file. Otherwise you should probably leave room for at least one record. Note that free space is meaningful only when you are loading the dataset. After that you're at the mercy of the application because when VSAM undertakes a CI split it evenly divides the records evenly between two CI's and doesn't take free space into consideration.

    You should avoid larger CI sizes for online systems. Not only does it take more processor to move around large chunks of data, VSAM locks at the CI level. Therefore, a large CI containing many records is more likely to cause waits.

    For seeming to be a relatively simple access method VSAM can be very subtle. However, following a few simple rules, VSAM performance and cost can be good enough for most applications. Remember, however, VSAM is not a database. Even with innovations like record level sharing (RLS) and transactional VSAM (TVS) you look to a real DBMS for a robust solution.

    Rate this Tip
    To rate tips, you must be a member of SearchDataCenter.com.
    Register now to start rating these tips. Log in if you are already a member.




    BROWSE BY TAG
    Server hardware,   Mainframe computers,   Information systems management,   Configuration and change management,   Data center operations management,   CICS Newsletter,   VIEW ALL TAGS

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Mainframe computers
    The mainframe is 45 years old
    Using CICS dump tables to manage problems in online systems
    High mainframe software costs may lead to platform's demise
    Manage CICS workloads with transaction classes
    Run CICS in batch to beat a shrinking batch window
    Analyst group disses Hewlett-Packard report about mainframe migration
    Using External Call Interface (EXCI) to access CICS
    Mainframers go for a jog at Share user group conference
    Mainframe student anticipates a bright future
    HP puts fault-tolerant NonStop on a blade

    Configuration and change management
    Application performance monitoring tools only half the battle at trucking company
    Data center consolidation strategy can benefit from ITIL lifecycle
    Mission impossible: Data center asset management
    Data center purchasing survey 2009: Budgets flatten, clampdown on costs
    CMDB Federation specification may ease configuration management system integration
    Using ITIL to bridge the IT-facilities gap, boost data center efficiency
    Tips for implementing IT Service Management in a down economy
    Top five keys to success for a new CMDB project
    Has the down economy driven data center automation?
    A data center colo expands its CMDB to include facility items

    CICS Newsletter
    Does IBM's mainframe business constitute a monopoly?
    IBM z/OS 1.11 preview: New features and functions
    New statistics for CICS Transaction Server 3.2
    Manage CICS workloads with transaction classes
    Run CICS in batch to beat a shrinking batch window
    Ensuring CICS security with the Web Services Security standard
    Use DFHLS2WS to expose CICS applications as a Web service
    Using IBM IPCS to battle software bugs
    CICS and Web services: Ready to go
    Using External Call Interface (EXCI) to access CICS

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    ACF2  (SearchDataCenter.com)
    Calibrated Vectored Cooling  (SearchDataCenter.com)
    enclave  (SearchDataCenter.com)
    IMS (Information Management System)  (SearchDataCenter.com)
    job  (SearchDataCenter.com)
    job scheduler  (SearchDataCenter.com)
    job step  (SearchDataCenter.com)
    MVS  (SearchDataCenter.com)
    z/OS  (SearchDataCenter.com)
    z990  (SearchDataCenter.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • White Papers - Data Center Networking

    The Intel IT Technology Center - Power, Performance and Mobility Solutions

    HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts