You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2023/05/25 23:38:00 UTC

[jira] [Created] (YUNIKORN-1770) Avoid resource clone in Application.tryNodes()

Peter Bacsko created YUNIKORN-1770:
--------------------------------------

             Summary: 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


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