You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2023/05/26 04:44:00 UTC
[jira] [Resolved] (YUNIKORN-1770) Avoid resource clone in Application.tryNodes()
[ https://issues.apache.org/jira/browse/YUNIKORN-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wilfred Spiegelenburg resolved YUNIKORN-1770.
---------------------------------------------
Fix Version/s: 1.3.0
Resolution: Fixed
change committed, thx [~pbacsko]
> Avoid resource clone in Application.tryNodes()
> ----------------------------------------------
>
> Key: YUNIKORN-1770
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1770
> Project: Apache YuniKorn
> Issue Type: Sub-task
> Components: core - scheduler
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.3.0
>
>
> Similarly to YUNIKORN-1764, we have an unnecessary clone in Application.tryNodes():
> {noformat}
> score := ask.GetAllocatedResource().FitInScore(node.GetAvailableResource())
> {noformat}
> This call site was visible in an alloc_space profile that we recently got from an upstream Yunikorn user. We can do this calculation without calling {{node.GetAvailableResource()}}, so cloning can be avoided.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org