Clear Pool/Set Object Access

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Q: What is the performance gain by using the Clear Pool (CLRPOOL) and Set Object Access (SETOBJACC) commands? Does CLRPOOL only work against those objects defined through SETOBJACC?

A: The CLRPOOL command is used to initialize a pool of memory. It removes all objects from a specified pool, clearing the memory allocated to the pool, regardless of whether the objects were brought in using the SETOBJACC command. CLRPOOL is an important step before using the SETOBJACC command-if the memory in the pool we use for the SETOBJACC command is not free, our objects may or may not be brought into main memory.

Using the CLRPOOL and SETOBJACC commands consists of four basic steps:

1. Finding or creating a pool in which to datapool (placing an object in a storage pool). 2. Finding the programs and files to datapool. 3. Initializing the memory used for datapooling. 4. Datapooling.

The best objects for datapooling are those that are read many times from disk. Programs that are called many times are candidates, as well as many of the common files. In any case in which record blocking increases performance, datapooling will do even better-even in instances where blocking is not possible (i.e., reading a file through a logical file). In this example, you could datapool both the physical and logical files. The performance gains I have seen for batch jobs are really incredible.

Editor's Note: Michael Catalani has written an article which discusses the topic of using the CLRPOOL and SETOBJACC commands in detail. Look for his article to be published in an upcoming issue of MC.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: