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

fix(BA-880): Aggregate multi-kernel session utilization in idle checker #3861

Merged
merged 5 commits into from
Mar 1, 2025

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Feb 28, 2025

resolves #3857 (BA-880)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@fregataa fregataa added this to the 24.03 milestone Feb 28, 2025
@fregataa fregataa self-assigned this Feb 28, 2025
@github-actions github-actions bot added size:S 10~30 LoC comp:manager Related to Manager component labels Feb 28, 2025
@github-actions github-actions bot added size:M 30~100 LoC and removed size:S 10~30 LoC labels Feb 28, 2025
Comment on lines 1235 to 1237
divider = kernel_counter or 1
total_utilizations = {k: v / divider for k, v in utilizations.items()}
return total_utilizations if total_utilizations else None
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems better to first return None by checking if kernel_counter is 0.

@HyeockJinKim HyeockJinKim enabled auto-merge March 1, 2025 06:29
@HyeockJinKim HyeockJinKim added this pull request to the merge queue Mar 1, 2025
Merged via the queue into main with commit 4597107 Mar 1, 2025
20 checks passed
@HyeockJinKim HyeockJinKim deleted the fix/multi-kernel-utilization-aggregation branch March 1, 2025 06:34
lablup-octodog pushed a commit that referenced this pull request Mar 1, 2025
…er (#3861)

Co-authored-by: HyeockJinKim <[email protected]>
Backported-from: main (25.3)
Backported-to: 24.09
Backport-of: 3861
lablup-octodog pushed a commit that referenced this pull request Mar 1, 2025
…er (#3861)

Co-authored-by: HyeockJinKim <[email protected]>
Backported-from: main (25.3)
Backported-to: 24.03
Backport-of: 3861
github-merge-queue bot pushed a commit that referenced this pull request Mar 1, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Utilization idle checker incorrectly calculates utilization for multi-kernel sessions
2 participants