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 "Daryn Sharp (JIRA)" <ji...@apache.org> on 2017/06/01 17:24:04 UTC

[jira] [Updated] (YARN-6681) Eliminate double-copy of child queues in canAssignToThisQueue

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

Daryn Sharp updated YARN-6681:
------------------------------
    Attachment: YARN-6681.branch-2.patch
                YARN-6681.trunk.patch

Add a {{hasChildQueues}} method that is overridden by {{ParentQueue}} to avoid the tree to list duplications.

> Eliminate double-copy of child queues in canAssignToThisQueue
> -------------------------------------------------------------
>
>                 Key: YARN-6681
>                 URL: https://issues.apache.org/jira/browse/YARN-6681
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.8.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: YARN-6681.branch-2.patch, YARN-6681.trunk.patch
>
>
> 20% of the time in {{AbstractCSQueue#canAssignToThisQueue}} is spent performing two duplications a treemap of child queues into a list - once to test for null, second to see if it's empty.  Eliminating the dups reduces the overhead to 2%.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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