Page MenuHomeFreeBSD

sched_4bsd: Rework ESTCPULIM() computation
ClosedPublic

Authored by olce on May 27 2024, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 12, 6:30 AM
Unknown Object (File)
Thu, Jul 10, 5:51 AM
Unknown Object (File)
Thu, Jul 10, 3:56 AM
Unknown Object (File)
Wed, Jul 9, 3:46 PM
Unknown Object (File)
Wed, Jul 9, 11:31 AM
Unknown Object (File)
Wed, Jul 9, 6:34 AM
Unknown Object (File)
Wed, Jul 9, 1:28 AM
Unknown Object (File)
Tue, Jul 8, 3:18 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.May 27 2024, 10:28 PM
This revision was not accepted when it landed; it landed in state Needs Review.Wed, Jun 18, 2:14 AM
This revision was automatically updated to reflect the committed changes.