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)
Thu, May 9, 5:12 AM
Unknown Object (File)
Wed, May 8, 11:32 AM
Unknown Object (File)
Wed, May 8, 11:32 AM
Unknown Object (File)
Wed, May 8, 9:27 AM
Unknown Object (File)
Jan 30 2024, 9:44 PM
Unknown Object (File)
Jan 16 2024, 10:08 PM
Unknown Object (File)
Dec 29 2023, 7:53 PM
Unknown Object (File)
Dec 24 2023, 9:48 PM
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 Not Applicable
Unit
Tests Not Applicable