hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maysam Yabandeh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-2430) FairShareComparator: cache the results of getResourceUsage()
Date Tue, 26 Aug 2014 23:51:59 GMT

     [ https://issues.apache.org/jira/browse/YARN-2430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maysam Yabandeh updated YARN-2430:
----------------------------------

    Assignee: Sandy Ryza  (was: Maysam Yabandeh)

> FairShareComparator: cache the results of getResourceUsage()
> ------------------------------------------------------------
>
>                 Key: YARN-2430
>                 URL: https://issues.apache.org/jira/browse/YARN-2430
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Maysam Yabandeh
>            Assignee: Sandy Ryza
>
> The compare of FairShareComparator has 3 invocation of  getResourceUsage per comparable
object. In the case of queues, the implementation of getResourceUsage requires iterating over
the apps and adding up their current usage. The compare method can reuse the result of getResourceUsage
to reduce the load by third. However, to further reduce the load the result of getResourceUsage
can be cached in FSLeafQueue. This would be more efficient since the invocation of compare
method on each Comparable object is >= 1.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message