Page MenuHomeFreeBSD

sched_4bsd: Rework ESTCPULIM() computation
Needs ReviewPublic

Authored by olce on May 27 2024, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 2:10 PM
Unknown Object (File)
Oct 5 2024, 12:45 PM
Unknown Object (File)
Oct 5 2024, 8:45 AM
Unknown Object (File)
Oct 4 2024, 10:57 PM
Unknown Object (File)
Oct 4 2024, 8:57 PM
Unknown Object (File)
Oct 4 2024, 8:42 PM
Unknown Object (File)
Oct 4 2024, 5:52 PM
Unknown Object (File)
Oct 4 2024, 4: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 59351
Build 56238: arc lint + arc unit