HomeFreeBSD

sched_4bsd: ESTCPULIM(): Allow any value in the timeshare range

Description

sched_4bsd: ESTCPULIM(): Allow any value in the timeshare range

The current formula wastes queues and degrades usage estimation
precision, since any increase of ticks that goes over 40 priorities (so,
8 * 40) is clamped to the last of these 40 levels (the nice value is
subsequently added to that number to get the final priority level).

Allow 'ts_estcpu' to grow up to a value corresponding to the greatest
(i.e., lowest) priority of the timeshare range.

MFC after: 1 month
Event: Kitchener-Waterloo Hackathon 202506
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45392

Details

Provenance
olceAuthored on May 21 2024, 12:55 PM
Differential Revision
D45392: sched_4bsd: Rework ESTCPULIM() computation
Parents
rG51a4ae05abe6: sched_4bsd: Remove RQ_PPQ from ESTCPULIM()'s formula
Branches
Unknown
Tags
Unknown