24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The nice value has a much greater impact on the priority of a thread. It is now<br />

included in the calculation as a multiplier of the recent CPU usage in addition to<br />

the use as a constant factor.<br />

With the default values of 16 for sched_R and sched_D, and 60 for nice and<br />

DEFAULT_NICE, the priority calculation equates to:<br />

• Priority calculation: cpu / 2 + 60<br />

• Once per second ageing of all threads: cpu = cpu / 2<br />

Although the algorithm has changed, the default values provide an identical<br />

function.<br />

2.13.2 Sample Results of Altering Nice Value<br />

The following tables list the results of changing the nice value of a thread on two<br />

identical machines; one running the old algorithm, and the other running the new<br />

algorithm. In each case, the tables list the percentage of CPU time delivered to<br />

one thread that has been niced by the indicated delta, which is in competition with<br />

varying numbers of default priority threads. All threads were running the same<br />

CPU bound application.<br />

From comparison of the values in Table 7 and Table 8, it can be seen that the<br />

effect of a positive nice delta on a thread has been enhanced. Take, for example,<br />

a thread running with a nice delta of 19 in competition with one default thread.<br />

Previously, the niced thread would receive 41 percent of the CPU, with the default<br />

thread receiving the remaining 59 percent. With the new algorithm, the niced<br />

thread has been reduced to 15 percent, with the default thread increasing to 85<br />

percent.<br />

In addition, the effect of a negative nice delta has been increased. A thread<br />

running with a nice delta of -20 competing against 31 default threads now<br />

receives 32 percent of the CPU, compared with 23 percent under the previous<br />

26 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!