Page MenuHomeFreeBSD

sched_4bsd: Rework ESTCPULIM() computation
Needs ReviewPublic

Authored by olce on May 27 2024, 10:28 PM.
Tags
None
Referenced Files
F95496662: D45392.id143036.diff
Sat, Sep 21, 4:50 AM
F95380327: D45392.id.diff
Fri, Sep 20, 1:20 PM
Unknown Object (File)
Thu, Sep 19, 4:56 AM
Unknown Object (File)
Thu, Sep 19, 4:27 AM
Unknown Object (File)
Wed, Sep 18, 9:34 PM
Unknown Object (File)
Wed, Sep 18, 3:24 AM
Unknown Object (File)
Mon, Sep 16, 12:12 AM
Unknown Object (File)
Sun, Sep 15, 1:02 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