-
Notifications
You must be signed in to change notification settings - Fork 219
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
[YUNIKORN-1881] Improve the performance of tryPlaceholderAllocate #597
Conversation
Codecov Report
@@ Coverage Diff @@
## master #597 +/- ##
==========================================
+ Coverage 77.49% 77.55% +0.05%
==========================================
Files 77 77
Lines 12586 12687 +101
==========================================
+ Hits 9754 9839 +85
- Misses 2518 2533 +15
- Partials 314 315 +1
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b746c12
to
bb45b3f
Compare
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.
Looks ok I think. Would like @wilfred-s to take a look as well. +1.
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.
Few more observations, but not exactly specific to this pr.
- Some checks are repeated in mutiple try...() methods in
queue
. For example,app.IsAccepted()
andsq.canRunApp()
- Some checks can be carried out much more earlier in
queue
itself instead of doing inapplication
. For example, queue and user headroom checks.
I think these checks can be kept in one single place.
d585901
to
ddef037
Compare
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 is this PR for?
tryPlaceholderAllocate()
is too expensive. It copies and sorts apps and tries to find schedulable tasks even if we do not have placeholders at all. Applications should track if they have an active placeholder allocation to avoid unnecessary copy/sorting.What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-1881
How should this be tested?
Screenshots (if appropriate)
Questions: