You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Yufei Gu (JIRA)" <ji...@apache.org> on 2016/12/06 07:16:58 UTC

[jira] [Commented] (YARN-5969) FairShareComparator getResourceUsage poor performance

    [ https://issues.apache.org/jira/browse/YARN-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15724665#comment-15724665 ] 

Yufei Gu commented on YARN-5969:
--------------------------------

Thanks [~zsl2007] for reporting this issue and providing patch. Can you add performance comparison before and after your patch?

Can any committer/administrator add [~zsl2007] as a contributor? Thanks. cc [~kasha], [~templedf].

> FairShareComparator getResourceUsage poor performance
> -----------------------------------------------------
>
>                 Key: YARN-5969
>                 URL: https://issues.apache.org/jira/browse/YARN-5969
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: fairscheduler
>    Affects Versions: 2.7.1
>            Reporter: zhangshilong
>         Attachments: 20161206.patch
>
>
> in FairShareComparator class, the performance of function getResourceUsage()  is very poor. It will be executed above 100,000,000 times per second.
> In our scene, It  takes 20 seconds per minute.  
> A simple solution is to reduce call counts  of the function.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org