-
Notifications
You must be signed in to change notification settings - Fork 245
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
Enable preemption and borrowing based on flavor #849
Changes from all commits
89dbdc9
0a3717c
b1932a3
1f77f6d
2dce8f4
5f3a495
c30dc96
cb6c6df
fd57d27
a7ce098
27b18a9
92246e5
f82f4b4
a1c33e7
0ef0c8b
02e37ee
182270f
53154bc
7391e1f
e1de448
fa06cfa
3dbd26f
8a51167
832c43c
fb85387
dc5f167
4cdc10f
50475bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, the existing behavior for preemption is
whenCanPreempt=Preempt
. So by this PR, default behavior is changed?Is there any reason to change the default behavior? If it is possible, keeping the default behavior might be better.
@alculquicondor @KunWuLuan WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
whenCanPreempt=Preempt
, it means that we will pause at each flavor where usage+request<nominal+borrowingLimit and attempt to preempt. WhenwhenCanPreempt=tryNextFlavor
, it means that we will try to preempt after traversing all flavors and when mode=Preempt.whenCanPreempt=tryNextFlavor
is the current default behavior because we will traverse all flavors and break the loop until the best mode isFit
or all flavors have been .There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right. The flavorassigner traverses all flavors if the mode is
Preempt
.Thank you for the clarifications, and Sorry for the confusion.
kueue/pkg/scheduler/flavorassigner/flavorassigner.go
Lines 392 to 399 in c419743