Operating System - HP-UX
1833717 Members
2525 Online
110063 Solutions
New Discussion

Re: CPU Performance During Heavy Load

 
Chris_164
Contributor

CPU Performance During Heavy Load

Can anyone tell me or point to some documentation that explains what happens within the OS when the cpu hits 100% utilization? What occurs during cpu queing? If all processors on a server are pegged at 100% what happens to the processes on that server?

The servers are N class 7400's.

Thanks!
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: CPU Performance During Heavy Load

I don't believe the way processes are handled changes when CPU Usage hits 100%. The OS still handles it the same. Each process waits for its turn at the CPU and does whatever processing it can during it's "timeslice". It may have to wait longer if there are more processes waiting for CPU time.

There is no "swapping" of processes if the CPU hits 100% like there is if RAM hits 100% usage.
Mott Given
Frequent Advisor

Re: CPU Performance During Heavy Load

Queueing theory says that if the utilization becomes 100%, the queue length approaches infinity and your response time will approach infinity.

Mott Given
A. Clay Stephenson
Acclaimed Contributor

Re: CPU Performance During Heavy Load

The answer is that it depends. If any of the processes are run in the real-time scheduler class then no system or time-sharing scheduler class processes will run at all. For this reason, great care has to been taken when using real-time processes. System class processes (like page handling and other housekeeping daemons) are next in priority.
Finally time-sharing processes are run. The factors which effect the which processes are run 1) time in memory, 2) priority, 3) length of time the process has been sleeping, and 4) size of the process (on most flavors of UNIX).

If you see all the CPU's at 100% for extended periods of time then its time for a more/faster CPU's or time to schedule processes to run at off-peak periods.

If it ain't broke, I can fix that.