Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake up the scheduler on resume events or system clock changes #794

Open
1 task done
agronholm opened this issue Oct 8, 2023 · 0 comments
Open
1 task done

Wake up the scheduler on resume events or system clock changes #794

agronholm opened this issue Oct 8, 2023 · 0 comments
Milestone

Comments

@agronholm
Copy link
Owner

agronholm commented Oct 8, 2023

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

If the host is suspended (by entering a sleep state) and then is resumed, the scheduler should be woken up immediately.
Likewise, the scheduler should detect system clock changes whenever possible.

ChatGPT provided some helpful answers on how to accomplish this: https://chat.openai.com/share/a9811e15-29df-462a-9134-b7b231d79133

It also seems like FreeBSD, as of the 13.2 release, also supports timerfd: https://www.freebsd.org/status/report-2023-01-2023-03/#_native_linux_timerfd

Use case

It would be preferable not to have the scheduler overshoot the next schedule due to the host computer being suspended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant