Page MenuHomeFreeBSD

Optimizations for kqueue timers.
ClosedPublic

Authored by kib on Dec 25 2016, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 3:54 PM
Unknown Object (File)
Oct 23 2024, 10:43 AM
Unknown Object (File)
Oct 13 2024, 2:05 PM
Unknown Object (File)
Oct 11 2024, 12:37 AM
Unknown Object (File)
Oct 11 2024, 12:37 AM
Unknown Object (File)
Oct 11 2024, 12:37 AM
Unknown Object (File)
Oct 11 2024, 12:16 AM
Unknown Object (File)
Oct 7 2024, 4:18 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 6379

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.