Updated comments for the move in the previous commit.
This commit is contained in:
parent
71a62f8a05
commit
9bc8d885ed
@ -154,7 +154,7 @@ roundrobin(arg)
|
|||||||
* Note that, as ps(1) mentions, this can let percentages
|
* Note that, as ps(1) mentions, this can let percentages
|
||||||
* total over 100% (I've seen 137.9% for 3 processes).
|
* total over 100% (I've seen 137.9% for 3 processes).
|
||||||
*
|
*
|
||||||
* Note that statclock() updates p_estcpu and p_cpticks asynchronously.
|
* Note that schedclock() updates p_estcpu and p_cpticks asynchronously.
|
||||||
*
|
*
|
||||||
* We wish to decay away 90% of p_estcpu in (5 * loadavg) seconds.
|
* We wish to decay away 90% of p_estcpu in (5 * loadavg) seconds.
|
||||||
* That is, the system wants to compute a value of decay such
|
* That is, the system wants to compute a value of decay such
|
||||||
@ -902,12 +902,12 @@ sched_setup(dummy)
|
|||||||
/*
|
/*
|
||||||
* We adjust the priority of the current process. The priority of
|
* We adjust the priority of the current process. The priority of
|
||||||
* a process gets worse as it accumulates CPU time. The cpu usage
|
* a process gets worse as it accumulates CPU time. The cpu usage
|
||||||
* estimator (p_estcpu) is increased here. The formula for computing
|
* estimator (p_estcpu) is increased here. resetpriority() will
|
||||||
* priorities (in kern_synch.c) will compute a different value each
|
* compute a different priority each time p_estcpu increases by 4
|
||||||
* time p_estcpu increases by 4. The cpu usage estimator ramps up
|
* (until MAXPRI is reached). The cpu usage estimator ramps up
|
||||||
* quite quickly when the process is running (linearly), and decays
|
* quite quickly when the process is running (linearly), and decays
|
||||||
* away exponentially, at a rate which is proportionally slower when
|
* away exponentially, at a rate which is proportionally slower when
|
||||||
* the system is busy. The basic principal is that the system will
|
* the system is busy. The basic principle is that the system will
|
||||||
* 90% forget that the process used a lot of CPU time in 5 * loadav
|
* 90% forget that the process used a lot of CPU time in 5 * loadav
|
||||||
* seconds. This causes the system to favor processes which haven't
|
* seconds. This causes the system to favor processes which haven't
|
||||||
* run much recently, and to round-robin among other processes.
|
* run much recently, and to round-robin among other processes.
|
||||||
|
Loading…
Reference in New Issue
Block a user