-
Notifications
You must be signed in to change notification settings - Fork 328
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
[scheduling] Expand slot scheduler to resource scheduler #2846
[scheduling] Expand slot scheduler to resource scheduler #2846
Conversation
Co-authored-by: bermaker <495571751@qq.com>
…ew_rm_for_slot_manager
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.
Attribute num_mem_bytes
in Resource
class shall also be renamed as mem_bytes
.
* `ResourceEvaluator` can implement different resource evaluations for subtasks
I think failure of asv benchmark can be ignored, because the modification, the benchmark cannot run on master branch any more. The time in #2875 is 1.09±0.02s, I think this PR does not make the time worse. |
I think so. Thanks for your reminder. |
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.
LGTM
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.
LGTM
What do these changes do?
Currently Mars use slot for resource management and bands allocation which just consider cpu/gpu but no memory. Mars always allocate one slot which represents one core cpu or gpu for a subtask. It works well most time. But there are some shortcomings like:
Subtasks need less cpu but assigned more which results in low cpu utilization and long execution time
Subtasks need more memory and less cpu which leads node OOM
So we could develop more granular resource management and allocation to increase resource utilization, improve scheduling efficiency, and avoid OOM.
Related issue number
Closes #2787
Check code requirements