× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree with others that it would be better to assign a low priority to the job, then let the system allocate CPU, even if it consumes a much greater percent than other jobs. If you want to play tricks, you could add sleep() to the program; Chuck mentioned that. Other tricks would be to assign a time slice of 1 millisecond to the subsystem class, 1 max active threads in the subsystem. Constraining subsystem memory would probably work, but a bad idea; the only work getting done might be page-in, page-out.

-Nathan.



________________________________
From: Thomas Garvey <tgarvey@xxxxxxxxxx>
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, May 16, 2012 12:09 PM
Subject: best way to limit a job

I'm looking for the best and simplest way to limit how much of the system a
particular job will take.  Ideally, we would be able to configure a job so
that it won't take more than x% of the CPU (as seen on a WRKACTJOB display).
We've tried using *CLS objects, defining Run Priority and Time slice
seconds, but it doesn't seem to limit the job.  It still takes as much of
the CPU as it wants.

Suggestions?

Tom Garvey

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.