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 22:13:04 UTC
[jira] [Updated] (YARN-6682) Improve performance of
AssignmentInformation datastructures
[ https://issues.apache.org/jira/browse/YARN-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daryn Sharp updated YARN-6682:
------------------------------
Attachment: YARN-6682.branch-2.8.patch
YARN-6682.branch-2.patch
YARN-6682.trunk.patch
Simply uses primitive arrays indexed on ordinal. Differences between branches is trivial: ex. generics removal, containerId vs rmContainer.
> Improve performance of AssignmentInformation datastructures
> -----------------------------------------------------------
>
> Key: YARN-6682
> URL: https://issues.apache.org/jira/browse/YARN-6682
> Project: Hadoop YARN
> Issue Type: Sub-task
> Affects Versions: 2.8.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: YARN-6682.branch-2.8.patch, YARN-6682.branch-2.patch, YARN-6682.trunk.patch
>
>
> {{AssignmentInformation}} is inefficient and creates lots of garbage that increase gc pressure. It creates 3 hashmaps that each contain only 2 enum-based keys. This requires wrapper node objects, boxing/unboxing of ints, and more expensive lookups than simply using primitive arrays indexed by enum ordinal.
--
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