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

Change heartbeat thread controls #110

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Change heartbeat thread controls #110

merged 1 commit into from
Nov 14, 2023

Conversation

kpamnany
Copy link
Collaborator

@kpamnany kpamnany commented Nov 12, 2023

PR Description

When enabling heartbeats, the user must now specify:

  • heartbeat_s: jl_heartbeat() must be called at least once every heartbeat_s; if it isn't, a one-line heartbeat loss report is printed
  • show_tasks_after_n: after these many heartbeat_s have passed without jl_heartbeat() being called, print task backtraces and stop all reporting
  • reset_after_n: after these many heartbeat_s have passed with jl_heartbeat() being called, reset reporting

Checklist

Requirements for merging:

@github-actions github-actions bot added port-to-v1.10 This change should apply to Julia v1.10 builds port-to-master This change should apply to all future Julia builds port-to-v1.9 This change should apply to Julia v1.9 builds labels Nov 12, 2023
@kpamnany kpamnany requested a review from NHDaly November 12, 2023 22:31
src/threading.c Outdated Show resolved Hide resolved
src/threading.c Outdated Show resolved Hide resolved
Copy link
Member

@NHDaly NHDaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than a note to make sure we don't lose the maximum heartbeat loss duration from this

src/threading.c Outdated Show resolved Hide resolved
When enabling heartbeats, the user must specify:
- heartbeat_s: jl_heartbeat() must be called at least once every heartbeat_s; if it
  isn't, a one-line heartbeat loss report is printed
- show_tasks_after_n: after these many heartbeat_s have passed without jl_heartbeat()
  being called, print task backtraces and stop all reporting
- reset_after_n: after these many heartbeat_s have passed with jl_heartbeat()
  being called, print a heartbeats recovered message and reset reporting
@kpamnany kpamnany merged commit eae1b68 into v1.9.2+RAI Nov 14, 2023
1 check failed
@kpamnany kpamnany deleted the kp-tweak-hb branch November 14, 2023 17:22
@kpamnany kpamnany removed the port-to-v1.10 This change should apply to Julia v1.10 builds label Nov 16, 2023
@Drvi Drvi added port-to-v1.9 This change should apply to Julia v1.9 builds and removed port-to-master This change should apply to all future Julia builds port-to-v1.9 This change should apply to Julia v1.9 builds labels Dec 7, 2023
@d-netto d-netto removed the port-to-v1.9 This change should apply to Julia v1.9 builds label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants