Let’s say there is a process on your Unix/Linux system that sometimes tends to consume all CPU resources and become unresponsive. At the same time, you do not want to terminate the process at the first sign of trouble, because momentary high CPU utilization may be legitimate. The solution is to continuously calculate the running average of CPU utilization. Korn shell array is a good tool for storing intermediate values and calculating the average. Below is a sample script that will terminate the monitored process (process.bin) if it exceeds CPU utilization limit during the specified period of time...
Read more: http://www.krazyworks.com/controlling-p ... ilization/
Controlling Process CPU Utilization
Return to “System Administration”
Who is online
Users browsing this forum: No registered users and 3 guests