Performance tuning of a batch job

Performance tuning of a batch job

For example, one of your batch jobs needs to update 25 files. In this case, the system will take a lot of time to complete the task. At the same time, we have some restrictions on the CPU utilization, i.e., in most installations the maximum CPU allowed to a job is 10 to 15% of total CPU. Even though no other jobs are running on the system except your jobs, the system will allow you to use only 15 to 20% of CPU. If we can utilize the other 80% of the CPU, we can complete the job in one fifth of the time it previously took. The way we can use that 80% is by using the concurrent processing. What we need to do is split the whole job into logical pieces.

Submit all the split jobs concurrently; so that each job will take 10 to 15% of CPU i.e., if you split the original job into five pieces, then you can use 70% of CPU. So parallel, you can process the records of different files at the same time.

Along with the concurrent jobs you need to submit another job called MONITOR, what it will do is to monitor all the jobs to see if they are complete or not. Each concurrent job will update a data area position with some flag, say 'Y' before completing the job. The MONITOR job will check the respective positions and comes to know that a particular jobs is complete, how many jobs are complete, whether all jobs are complete or not etc., once MONITOR finds that all jobs are complete, it sends a message to the operator or it submits another job, which is depending on this

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

job.

Figure 1: Concurrent JOB Flow Diagram.doc.

 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was first published in November 2002

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.