Page MenuHomeFreeBSD

kern/subr_trap.c: repair the HPTS performance hack in userret()
ClosedPublic

Authored by glebius on Nov 30 2023, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 11:56 PM
Unknown Object (File)
Tue, Nov 5, 3:02 PM
Unknown Object (File)
Wed, Oct 16, 4:27 PM
Unknown Object (File)
Wed, Oct 16, 5:04 AM
Unknown Object (File)
Oct 15 2024, 2:41 PM
Unknown Object (File)
Oct 14 2024, 10:21 PM
Unknown Object (File)
Oct 14 2024, 11:37 AM
Unknown Object (File)
Oct 14 2024, 8:01 AM
Subscribers

Details

Summary

It wasn't functional as subr_trap.c doesn't include opt_inet.h. Put a
better comment in place of the old one. The idea is to use userret() as
a cheap place to call a soft clock. This approach saves CPU on busy
machines and saves power on idle machines. An alternative would be to
constantly schedule callouts. Running with neither callouts nor the soft
clock ruins HPTS precision.

Diff Detail

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