13
Wed, Nov
5 New Articles

TechTip: Pseudo Journal—Estimate the Overhead of System i Journaling

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
Many System i customers are aware of the benefits provided by journaling, but these same customers may be reluctant to use journaling because of the overhead that it can add to a system. Unfortunately, this reluctance is often based on journal performance experiences when the AS/400 was first released. And many of these customers forget about the countless improvements IBM has made over the years in terms of disk and CPU speeds as well as the efficiency of i5/OS journal software itself. Other System i customers are more open to journaling but avoid taking this step because they just don't know how much overhead will be added to the system.

To address this fear and uncertainty, IBM has recently made a no-charge, downloadable tool available to help customers better estimate the amount of overhead that journaling would add to their system. The toolset, known as Pseudo Journal, can be downloaded along with an installation guide and tutorial.

The Pseudo Journal toolset enables you to have i5/OS monitor changes (inserts, updates, and deletes) made to your database objects. After monitoring your database activity, the toolset can be used to provide an estimate of how much disk and CPU resources would be consumed if journaling had been active when the monitored database activity took place.

The toolset consists of two CL commands that are created during the installation process. The Start Pseudo Journal (STRPSJRN) command identifies which database objects you would like to monitor. This activation step can be a long-running operation, so it's recommend that the STRPSJRN command be executed in a batch process. In the following example, you'll see that only a single DB2 object has been specified on the FILE parameter.
   STRPSJRN FILE(KKTEST/DT1) DTAFILE(QGPL/PSJEST1) MBROPT(*CREATE) 
                     NBRSAMPLE(50) INTERVAL(20)          


The FILE parameter also supports a generic (i.e., wildcard) file name or *ALL to allow you to monitor all the DB2 tables in a library. The DTAFILE parameter specifies where the command will keep all of the monitoring statistics. You can use the NBRSAMPLE and INTERVAL parameters to control how much overhead the STRPSJRN command adds to your system. The NBRSAMPLE parameter controls how many times the Pseudo Journal tool will wake up and collect activity statistics for the specified DB2 object(s). The associated INTERVAL parameter specifies in seconds how frequently the Pseudo Journal tool is activated. In this example, the tool will collect 50 activity samples with the samples occurring every 20 seconds.

Once all the samples have been collected, the Display Pseudo Journal Data (DSPPSJDTA) command is used to take all the raw data and generate reports that display the estimated disk and CPU resources that would be added if journaling were started for the specified database objects and the monitored changes. Here's an example of the command:

   DSPPSJDTA DTAFILE(QGPL/PSJEST1) FILE(*ALL) RPTTYPE(*SUMMARY)

The DTAFILE parameter must match the same value used on the STRPSJRN command. The FILE parameter allows you to display the journal estimate reports for all the database objects (i.e., *ALL) monitored by the STRPSJRN command, or you can specify individual DB2 table or file names to focus your journal analysis to a smaller set of DB2 objects. The Report Type (RPTTYPE) parameter allows you to select one of three ways to view the journal estimate reports.

The Summary report (*SUMMARY) is probably the easiest report to start with. If you're displaying the journal estimates for multiple database objects, this report will show the journal overhead estimates for all of the DB2 objects. The List report (*LIST) returns the journal overhead estimate for each individual database object.

Here's a snapshot of the more interesting estimates returned by the Summary and List reports:

DISK WRITE SUMMARY==========
Disk Writes                                             4.014 K
Disk Writes W/Caching                         3

JOURNAL STORAGE SUMMARY=======
Total Data                                               353.044 KB
Total Data (W/O Before Image)           348.873 KB (without Before Images)

JOURNAL DISK I/O THROUGHPUT SUMMARY========
Average Throughput                             361 B /s
Maximum Throughput                           4.936 KB/s

PERFORMANCE SUMMARY=======
CPU Overhead                                     48.168 ms
CPU Overhead w/caching                   24.084 ms
.
Added Elapsed Time                           1.204 ms
Added Elapsed Time w/caching         0.001 ms

One key thing to notice in these reports is that not only do you get raw estimates for the disk and CPU resources required by journaling, but you will see that the report also includes more advanced estimates that take into account optional journal settings—for example, how much reduction can occur in the journal disk storage requirements if before images are not journaled or how much disk and CPU performance be improved with Journal Caching (i5/OS licensed feature number 42) installed.

A Histogram report type is also supported, allowing you to see if there are any periods in time when the estimated journal activity would peak severely or if the journal overhead is constant. You should be aware that none of the reports produce a recommend system configuration. The customer is responsible for using these CPU and disk resource estimates to determine whether any system upgrades are needed in order to accommodate journaling on your server.

There's not enough room to go into all of the details of this new toolset, but there's plenty here to get you started. The Pseudo Journal tool can be used on any V5R3 or V5R4 server. IBM does plan to improve the toolset and documentation, so you should visit the Web site on a regular basis. It should be noted that this toolset is not officially supported by IBM, so the toolset is provided to you "as is" without any warranties of any kind.

Kent Milligan
Kent Milligan is a Senior Db2 for i Consultant in the IBM Lab Services Power Systems Delivery Practice.  Kent has over 25 years of experience as a Db2 for IBM i consultant and developer working out of the IBM Rochester lab. Prior to re-joining the DB2 for i Lab Services practice in 2020, Kent spent 5 years working on healthcare solutions powered by IBM Watson technologies. Kent is a sought-after speaker and author on Db2 for i & SQL topics.
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • 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.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • 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

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • 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: