Limit/restrict CPU% for a job in AS400

15 pts.
Tags:
AS/400 jobs
AS/400 performance
Hi,

I have a job where I want to restrict the maximum CPU% usage.

I tried various ways like setting a low run priority and a low-timeslice. Still they are not meeting my requirement.  With these 2 parameters, when the system is free, it is allocating the full CPU% to my job alone which I don't want.

Briefly my requirement is, I have to run the job with say a maximum of 2% CPU.  It can take any number of days to complete, but the CPU% must be achieved.

Can anybody guide me please.

Thanks

Murty Varanasi



Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

When you say you “lowered the prioity” you do know that a priority of (1) is the highest priority and 99 the lowest. If you set your job to a 60 priority, all interactive and batch will get all of the timeslice they can use before your job gets any. If you are doing this and the system uses 100% CPU the in is because the processor is available and it will not effect other jobs. AS400s run at 100% with no problem.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I have to run the job with say a maximum of 2% CPU. What is the time interval for a percentage? That's important because your job will use 100% of the CPU during the times that it is actually running. Control over, say, a 30-minute interval is easier than over a 1-minute interval. Whether some system function manages your CPU usage or some monitor of your own does it, it will take more CPU to execute the controlling process if it must track smaller intervals. For a 2% maximum threshold, you might start spending resources to keep your job under control that start to approach the resources of the job itself. So, how are figuring the 2% value? Tom
    125,585 pointsBadges:
    report
  • mcl
    If the system is not doing anything else, why do you care if your job gets all the CPU? The O/S is doing what it is supposed to be doing. Don't try to fix it! You can throttle a job to use less CPU, but that really only becomes apparent when the system is busy. Regards Mike
    2,740 pointsBadges:
    report
  • Vatchy
    Try using the CL command DlyJob. Process some number of records - experiment with this - and then delay the job for 2-3 seconds. A little testing should give you the results that you need. You can use QCmdExc to execute the DlyJob command from an RPG program.
    1,410 pointsBadges:
    report
  • VVNMURTY
    I am in a way not satisfied with any of the responses got so far on this task. My main purpose is; when my job is running, people (the other users on the system) see the CPU% and are scary to submit/release their jobs. Even for a nano second, my job should not show above a certain percentage of CPU usage. I reiterate even if the system or the processor (as the other friends say), is absolutely free, my job should not show more than a 5 or 10% CPU usage. Even if I put a delay job (as suggested by one of the members), I am not getting the required result. My file is an old file of 10 year history data with 80 GB (you are right, it is 80 GB), even if I process 10000 records in it, system takes a lot time to set my pointer to the required records. Can anybody throw some light on this. I belive if there are members from IBM they can resolve this fast.
    15 pointsBadges:
    report
  • TomLiotta
    ...when my job is running, people (the other users on the system) see the CPU% and are scary to submit/release their jobs. IMO, no one who doesn't understand what "CPU %" means should even see the "CPU %" figure for that exact reason. You cannot satisfy people who don't know the meaning of what they're saying. As already asked and not yet answered -- What is the time interval for a percentage? And how are you figuring the 2% value? Until those questions are answered by you, there is no valid answer to your question because there isn't enough information about it yet. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    As pointed out in all responses. The AS/400 operating system optimizes the active job load, this is generally considered a good thing. Changing the run priority and inserting delays will favor other jobs, but when it's not delayed your job will still get the unused resources. But we could .. help you make a "fake" version of WRKACTJOB that shows 2%. Phil
    51,355 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following