AS400 Mid Range/how to limit CPU usage

Advertisement


Question
Is there a way to limit the %cpu a job can take. I have several job which take high CPU. I have optimized them but still they take high CPU. I want a way to submit the job so that there CPU usage dont go above a limit. Say 2%(without worrying about how to optimize etc)


Answer
The simplest approach is to submit the job to batch with a low run priority and timeslice, say RUNPTY(50) TIMESLICE(5000). From there, the system simply grants the job run time after it has satisfied all other jobs of higher priority.  Otherwise, you could explore more exotic solutions such as creating a separate memory pool for the job to run in.  However, in my experience, setting a low priority is as effective a way as any.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.