21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Priority calculation parameters<br />

The priority of most user processes varies with the amount of CPU time the<br />

process has used recently. The CPU scheduler’s priority calculations are based<br />

on two flags that are set with schedtune, -r and -d. The formula used by the<br />

scheduler to calculate the amount to be added to a process’s priority value as a<br />

penalty for recent CPU use is:<br />

CPU penalty = (recently used CPU value of the process) * (r/32)<br />

The once-per-second recalculation of the recently used CPU value of each<br />

process is:<br />

new recently used CPU value = (old recently used CPU value of the process) *<br />

(d/32)<br />

Both -r and -d have default values of 16. This maintains the CPU scheduling<br />

behavior of previous versions of the operating system.<br />

Memory load control parameters<br />

The operating system scheduler performs memory load control by suspending<br />

when memory is over committed. Memory is considered over committed when<br />

the following condition is met:<br />

p * h s<br />

Where p is the number of pages written to paging space in the last second, h is<br />

an integer specified by the -h flag, and s is the number of page steals that have<br />

occurred in the last second.<br />

A process is suspended when memory is over committed and the following<br />

condition is met:<br />

r * p f<br />

Where r is the number of repages that the process has accumulated in the last<br />

second, p is an integer specified by the -p flag, and f is the number of page faults<br />

that the process has experienced in the last second.<br />

Time slice increment parameter<br />

The schedtune command can also be used to change the amount the operating<br />

system allows a given process to run before the dispatcher is called to choose<br />

another process to run (time slice). The default value for this interval is a single<br />

clock tick (10 milliseconds). The -t flag of the schedtune command allows the<br />

user to specify the number of clock ticks by which the time length is to be<br />

increased.<br />

Chapter 10. Performance problem determination 255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!