On Wed, 2006-06-21 at 03:43 +0900, Denis Solovyov wrote: > But thanks for your suggestion, adding "nice" to my Google queries I > could find the following utility (7 Kb perl script): > http://www.sslug.dk/~chlor/niceload > > I'm not good in process managing as well as in perl scripting, would > anyone consult if it is a good and reliable script?
This script would seem to make more sense on super-heavily loaded systems, since it suspends the process rather than just renicing it (although it could be modified to renice rather than just suspend). It's like a poor-man's scheduler. I'd think you'd get better performance overall by giving "hints" to the kernel scheduler through nice values rather than explictly suspending a process. It may be useful depending on your needs though. A fully suspended process may also have problems if it is using network resources (the other end could disconnect while it is suspended (timeouts) -- less chance of this happening if it's just reniced). I would restrict using this script on processes that are long running and largely self-contained. What's good about giving something a really low priority (+20) is that it will run when there is nothing else that needs CPU time. Using this script, it will only run when the script unsuspends it. This may, overall, lessen throughput. Note that these comments are based on reading the script -- I have not used it myself. -- Andy Bakun <[EMAIL PROTECTED]> _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
