Midrange News for the IBM i Community


Posted by: sarge
Citizen/Soldier
U.S. Army
United States
Batch job and CPU %
has no ratings.
Published: 07 Dec 2012
Revised: 23 Jan 2013 - 1587 days ago
Last viewed on: 29 May 2017 (2990 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Batch job and CPU % Published by: sarge on 07 Dec 2012 view comments(4)

hi.

i have a batch job that is runinng at 1.2% of the CPU. my cpu % is 5.0 and most of the other jobs are interactive running at less that 1.0%.

i have changed the job priority and timeslice, but my batch job cpu% only goes up .5% at best.

how do i give this batch job more CPU?

thanks.

-sarge

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: captndjc
Premium member *
Comment on: Batch job and CPU %
Posted: 4 years 5 months 21 days 21 hours 9 minutes ago

Hey sarge,

 

I'm going to assume your looking at wrkactjob screen to see these numbers. How long of an elapsed time frame are you using? Command key 10 on this screen restarts the statistics and you should use a time frame of 1 to no more then 10 minutes to judge how things are running.

Posted by: sarge
Premium member *
United States
Comment on: Batch job and CPU %
Posted: 4 years 5 months 21 days 21 hours 4 minutes ago

hey cptndjc,

yep. wrkactjob. i am using 1 minute intervals to look at the job. although it seems to be writing more records to the file in the same amount of time, as compared to earlier, i wonder why the CPU% used does not significantly change....and also, if there is a way to change the amount a CPU a job gets, without having to work with storage pools, new subsystems, etc.

thanks.

-sarge

Posted by: captndjc
Premium member *
Comment on: Batch job and CPU %
Posted: 4 years 5 months 21 days 20 hours 47 minutes ago

If your in a hurry for this job to run (and it's just a one time thing), do a change job and change the run priority to a higher (smaller number) priority. If the job is in a pool and going to timeslice end, you can also change the time slice to a larger number. If it's doing a lot of I/O, this may not make a difference.

for example.......

CHGJOB RUNPTY(19) TIMESLICE(2000000)

garenteed to kill the system.......

PS. I think you have to hold the job and release it to get the time slice change to take effect.

Posted by: sarge
Premium member *
United States
Comment on: Batch job and CPU %
Posted: 4 years 5 months 21 days 20 hours 43 minutes ago

alright. just held it. waited a few seconds and then released it with a timeslice of 25000.

dont want to bring the system to it's knees.......or do i? bwah, hah, hah, haaaahhhh!

-sarge