Page MenuHomeFreeBSD

sched_4bsd: Rework ESTCPULIM() computation
Needs ReviewPublic

Authored by olce on Mon, May 27, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 6:16 AM
Unknown Object (File)
Thu, May 30, 5:55 PM
Subscribers

Details

Reviewers
jhb
markj
mav
jeff
Summary

Please see overview of project at D45393.

  1. Move definition after dependent macros.
  2. Remove RQ_PPQ from the formula. Substracting RQ_PPQ to the maximum number of allowed priority values (the factor to INVERSE_ESTCPU_WEIGHT) has the effect of pessimizing the number of processes assigned to the last priority bucket.
  3. Allow any value in the (now enlarged) timeshare range. The previous formula wastes queues and degrades usage estimation precision, since any increase of ticks that makes adding more than 40 priorities is clamped to the last of these levels.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57945
Build 54833: arc lint + arc unit