- Use the proper constant in sched_interact_update(). Previously,
SCHED_INTERACT_MAX was used where SCHED_SLP_RUN_MAX was needed. This was causing the interactivity scaler to lose history at a more dramatic rate than intended.
This commit is contained in:
parent
14b099f23f
commit
3f884ddf6b
@ -1043,7 +1043,7 @@ sched_interact_update(struct ksegrp *kg)
|
||||
* will not bring us back into range. Dividing by two here forces
|
||||
* us into the range of [3/5 * SCHED_INTERACT_MAX, SCHED_INTERACT_MAX]
|
||||
*/
|
||||
if (sum > (SCHED_INTERACT_MAX / 5) * 6) {
|
||||
if (sum > (SCHED_SLP_RUN_MAX / 5) * 6) {
|
||||
kg->kg_runtime /= 2;
|
||||
kg->kg_slptime /= 2;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user