Page MenuHomeFreeBSD

Optimizations for kqueue timers.
ClosedPublic

Authored by kib on Dec 25 2016, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 11:50 PM
Unknown Object (File)
Mar 7 2024, 10:14 PM
Unknown Object (File)
Jan 30 2024, 3:43 AM
Unknown Object (File)
Dec 22 2023, 9:40 PM
Unknown Object (File)
Dec 9 2023, 9:53 PM
Unknown Object (File)
Sep 7 2023, 3:04 PM
Unknown Object (File)
Sep 7 2023, 3:00 PM
Unknown Object (File)
Sep 7 2023, 3:00 PM
Subscribers

Details

Summary

There is no need to do two allocations per kqueue timer. Gather all data needed by the timer callout into the structure and allocate it at once.

Use the structure to preserve the result of timer2sbintime(), to not perform 64bit calculations in callout.

Style.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib retitled this revision from to Optimizations for kqueue timers..
kib updated this object.
kib edited the test plan for this revision. (Show Details)
kib added reviewers: markj, jhb, badger.
kib set the repository for this revision to rS FreeBSD src repository - subversion.
markj edited edge metadata.

Looks like you can get rid of the p_nexttime field too.

This revision is now accepted and ready to land.Dec 25 2016, 7:09 PM
This revision was automatically updated to reflect the committed changes.